Skip to content
⌘ NSIS Forum Archive

Uninstalling older versions.

3 posts

Guest#

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?
Comm@nder21#
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.