Kaveman
18th October 2005 22:17 UTC
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.
pawcio
19th October 2005 00:33 UTC
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
Kaveman
19th October 2005 09:37 UTC
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!
kichik
20th October 2005 19:29 UTC
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.
Afrow UK
20th October 2005 19:42 UTC
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