Archive: Uninstalling older versions.


Uninstalling older versions.
What is the script to check for older versions of software and if one is preset, uninstall it before installing the new version?


there is no specific script.
to detect older versions, it depends on what is detectable of older versions :)
e.g. you can search for registry entries, files and directories created by your program, if they are present, the application may still be installed.
to get the installed version, store it in the registry, or read out version information with the 'GetDllVersion' command.

see the docs for more information about checking all this.


The good example is a script for NSIS itself - {NSIS-DIR}\Examples\makensis.nsi