eyeinthesky43
4th November 2005 07:05 UTC
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?
Afrow UK
4th November 2005 09:14 UTC
CopyFiles "$INSTDIR\backup\program.exe" "$INSTDIR\program.exe"
-Stu
Takhir
4th November 2005 09:37 UTC
or (NSIS Manual 4.9.3.2)
CopyFiles "$INSTDIR\backup\program.exe" "$INSTDIR"
eyeinthesky43
4th November 2005 17:42 UTC
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...
eyeinthesky43
4th November 2005 17:54 UTC
Oh I am so stupid I had it in the wrong spot in the uninstall section, I got it working, Thanks for your help.