petersa
13th June 2001, 09:17
Sorry if this is a bit hard to understand...
SetOutPath $TEMP
File SPLASH.EXE
Exec SPLASH.EXE
If SPLASH.EXE also exists in the same folder as the installer, that copy is run. If I change the line to:
Exec $TEMP\SPLASH.EXE
The right copy runs, but it doesn't work the way it should.
SPLASH.EXE waits for a file that NSIS will extract to the directory, but it's looking in the directory of the installer, because NSIS apparently hasn't set the working dir to $TEMP.
The documentation says that $OUTDIR is the working directory for Exec and ExecWait, but for me it isn't. Am I doing something wrong?
I know I can change SPLASH.EXE to look in the actual directory, but this looks like a bug. So I thought I'd point it out.
SetOutPath $TEMP
File SPLASH.EXE
Exec SPLASH.EXE
If SPLASH.EXE also exists in the same folder as the installer, that copy is run. If I change the line to:
Exec $TEMP\SPLASH.EXE
The right copy runs, but it doesn't work the way it should.
SPLASH.EXE waits for a file that NSIS will extract to the directory, but it's looking in the directory of the installer, because NSIS apparently hasn't set the working dir to $TEMP.
The documentation says that $OUTDIR is the working directory for Exec and ExecWait, but for me it isn't. Am I doing something wrong?
I know I can change SPLASH.EXE to look in the actual directory, but this looks like a bug. So I thought I'd point it out.