Old 18th October 2005, 21:17   #1
Kaveman
Junior Member
 
Join Date: Oct 2005
Posts: 2
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.
Attached Files
File Type: nsi tyranids.nsi (57.4 KB, 158 views)
Kaveman is offline   Reply With Quote
Old 18th October 2005, 23:33   #2
pawcio
Guest
 
Posts: n/a
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
  Reply With Quote
Old 19th October 2005, 08:37   #3
Kaveman
Junior Member
 
Join Date: Oct 2005
Posts: 2
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!
Kaveman is offline   Reply With Quote
Old 20th October 2005, 18:29   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Re: r switch with rmdir and file

Quote:
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 20th October 2005, 18:42   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump