Archive: Uninstall command help?


Uninstall command help?
I need help, I made it so that before NSIS installs my program it creates a new directory in the $INSTDIR and copies the main exe file in that newly created directory for backup purposes, which that works but now what I am trying to figure out is how to get it so that when I uninstall it moves the exe from the directory it created back into the main directory, I tried using

CopyFiles $INSTDIR\backup\program.exe $INSTDIR

but that doesn't work... Can anyone help me out out?


CopyFiles "$INSTDIR\backup\program.exe" "$INSTDIR\program.exe"

-Stu


or (NSIS Manual 4.9.3.2)


CopyFiles "$INSTDIR\backup\program.exe" "$INSTDIR"

Ok I tried using both

CopyFiles "$INSTDIR\backup\program.exe" "$INSTDIR"

and

CopyFiles "$INSTDIR\backup\program.exe" "$INSTDIR\program.exe"

however when I uninstall, program.exe still remians in the backup folder and I want it to be moved out of the backup folder and back into the install directory...


Oh I am so stupid I had it in the wrong spot in the uninstall section, I got it working, Thanks for your help.