Archive: NT setOutPath bug


NT setOutPath bug
Apparently, if you don't explicitly set an outPath under NT, before a File statement, the file is not extracted to the $TEMP directory, but is extracted to the directory from which setup was executed.

This behavior does not happen on Win 2003 or WinXP.

I'm trying to utilize a file within the setup script (with a subsequent execWait). I don't want the file actually put into the $INSTALL directory.

Assuming I've identified the bug correctly, what should I set the outpath to, before this specific File statement?


You just want:

SetOutPath $TEMP
File ...?
SetOutPath $INSTDIR
File ...?


If you want it where the setup file is, then...

SetOutPath "$EXEDIR\setuptmp"

Then RmDir /r when you're done with it.

Edit: Or just use $PLUGINSDIR which is there for temp files...

-Stu