Archive: $PLUGINSDIR stays behind


$PLUGINSDIR stays behind
  I noticed while working on my installer that the $PLUGINSDIR stays around after I exit. The folder is empty and if I delete it manually it goes away immediately. I then noticed that it only occurs if $OUTDIR is set to my $PLUGINSDIR. Is this something I'm doing wrong? I've attached an example using basic.nsi to show the problem. Look at the code in .onInit. If you leave it the way it is the $PLUGINSDIR will not get deleted. If you comment the last line in it will get deleted. Also, don't run all the way through the installer. Just get the first dialog and then exit the installer.


onInit

InitPluginsDir
SetOutPath $PLUGINSDIR
;SetOutPath $TEMP
FunctionEnd
>
I'm using NSIS 2.10. During the Init I copy some files that are needed into the plugins directory. If I complete the install everything is fine because the $OUTDIR gets changed when installing the program. As a workaround I could just change the $OUTDIR to something else but thought I'd ask.

the un/installer cannot remove $OUTDIR.


Best thing to do is to change the OutPath to $TEMP.

-Stu


Thanks for the help. I will set the $OUTDIR to $TEMP.