Old 12th August 2021, 00:31   #1
Marbled
Junior Member
 
Join Date: Dec 2015
Posts: 24
Need to do an installer which sole job is to uninstall...

Hi!

I need to do an installer which sole job is to uninstall what was installed by the previous version of the application.

The user must not have to run the uninstaller directly or using add/remove programs in Windows, I must do it for her/him.

I see two ways of doing this...

Either copy all of what I had in the uninstall section into the install section or run the uninstaller which was installed by the previous installation of the application from my "installer".

I think running the uninstaller from my installer would be a bit confusing for the user (though I guess I might be able to run it in silent mode) so I would prefer to do something similar to taking everything in the uninstall section and putting it in the install section...

As long as I make sure the application was previously installed by making sure I can get its install directory is there any risks to what I want to do, anything I should be aware of?

Thank you and have a nice day!

Nick
Marbled is offline   Reply With Quote
Old 12th August 2021, 10:01   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,398
If the uninstaller from the previous version works perfectly then you can just run that.

Set this installer to silent. InstallDirRegKey to find the previous install.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 27th August 2021, 14:28   #3
Marbled
Junior Member
 
Join Date: Dec 2015
Posts: 24
Sorry for the delayed reply...

Thank you Anders, I am calling the uninstaller now...

Have a nice day!

Nick
Marbled is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
uninstal

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