Archive: Uninstaller won't work


Uninstaller won't work
Hi, I'm relatively new to NSIS. I'm creating an installer for a mod for the game Dawn of War, but when I run the uninstaller which is created by my installer only the shortcuts are removed and all the main files aren't.

I've attatched the code, any help would be thankfully recieved.


r switch with rmdir and file
If the /r switch is used, matching files are recursively searched for in subdirectories. If a directory name matches, all of its contents is added recursively. Directory structure is preserved.

You don't have to specify each file!

Before RMDir You have to type SetOutPath as well!

take look in manual about rmdir and file


Thanks for your help! Sorry if I've wasted anyone's time, I looked through the documentation but didn't really know what to look for!


Re: r switch with rmdir and file

Originally posted by pawcio
Before RMDir You have to type SetOutPath as well!
There's no need to use SetOutPath before RMDir. On the contrary, it might interfere because you can't delete the working directory and SetOutPath sets the working directory.

The working directory might be set to $INSTDIR which is why RMDir /r $INSTDIR would not work (if this is the case).

Thus you should use SetOutPath $TEMP first.

-Stu