Archive: How to update/uninstall previous installation


How to update/uninstall previous installation
Hi, given that I have an application A 1.0, how can I ensure that the A 1.1 installer will uninstall A 1.0 prior to installing 1.1?

There may be some files, shortcuts, etc, in 1.0 that are obsolete and thus should be removed when installing 1.1.

Do I have to check the registry and manually clear the directories, or is there a quick way to automaticly uninstall A 1.0 before doing 1.1 installing?

Btw, this is a greeeat tool! I've been using AdvancedInstaller, which is far less flexible than NSIS.


Hi Jotto :)

Well, you'll have at least to check the registry manually. Then it depends whether you have or not an Uninstaller available for the version 1.0 of the application.
If it is available, then you just have to execute it. Otherwise you'll have to write the functions that removes the obsolete shortcuts, files, etc.

Check this link, it might help:
http://nsis.sourceforge.net/archive/...b.php?page=385


evilO/Olive

PS: Welcome to the forums Jotto !


Thanks!
I guess running the uninstaller is the easiest way to go then.

Oh, in case anyone is interested; this is the application that I'm developing: http://www.jotto.no/pixort :-)

Feel free to add it to the list of applications using NSIS! (well, starting from version 1.1 alpha 2, that is).


Jahn Otto