Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 25th September 2009, 07:37   #1
watzr
Junior Member
 
Join Date: Sep 2009
Posts: 39
Calling Uninstallation while installing

Hi,

I wanna uninstall the application at the time of installation if it's already been installed. Since Uninstall section or functions cannot be called within other functions I need to know the correct way of doing this. There were few related topics in this forum. But I couldn't apply them.
watzr is offline   Reply With Quote
Old 25th September 2009, 07:50   #2
watzr
Junior Member
 
Join Date: Sep 2009
Posts: 39
I tried with "Exec <Path\Uninstaller.exe" in pre_instfiles function. Then it worked. Is this method correct?
watzr is offline   Reply With Quote
Old 25th September 2009, 08:37   #3
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
This method is just fine. You can also just create a normal function in your NEWER installer, that deletes all the files and regkeys etc. If your older uninstaller is trustworthy, you can simply use that. But you'll probably want to use ExecWait, not Exec.
MSG is online now   Reply With Quote
Old 25th September 2009, 10:18   #4
watzr
Junior Member
 
Join Date: Sep 2009
Posts: 39
Thanx...
watzr 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