Skip to content
⌘ NSIS Forum Archive

Uninstall command help?

5 posts

eyeinthesky43#

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?
eyeinthesky43#
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#
Oh I am so stupid I had it in the wrong spot in the uninstall section, I got it working, Thanks for your help.