Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 11th August 2006, 11:40   #1
UVV
Junior Member
 
Join Date: Jan 2006
Location: Russia, Norilsk
Posts: 22
Question good style of uninstalling

How it will be better:
code:

CreateDirectory "$SMPROGRAMS\Alykel"
CreateShortCut "$SMPROGRAMS\Alykel\..."


and then
code:

RMDir /r "$INSTDIR"
RMDir /r "$SMPROGRAMS\Alykel"


or :
code:

Delete "$INSTDIR\.."
Delete "$INSTDIR\.."
RMDir "$INSTDIR"

SetShellVarContext all

Delete "$SMPROGRAMS\Alykel\.."
Delete "$SMPROGRAMS\Alykel\.."
RMDir "$SMPROGRAMS\Alykel"


Something says me that second example will be more correct ;-)
UVV is offline   Reply With Quote
Old 11th August 2006, 11:50   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,216
The second example is the best way to go about it. It's good practice because the user may decide to install to desktop or some sill folder and a recursive deletion would be disasterous.

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 11th August 2006, 12:01   #3
UVV
Junior Member
 
Join Date: Jan 2006
Location: Russia, Norilsk
Posts: 22
thx, i was think so!
UVV is offline   Reply With Quote
Reply
Go Back   Winamp 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