Skip to content
⌘ NSIS Forum Archive

Uninstall before install

5 posts

3jg13#

Uninstall before install

Hi,
In my install script, I need to check something before I install the application. I want to check and see if an older application exists. This is my first install script with NSIS for this application, so I don't think I can use any olderVersion ideas. I have found the Uninstall key in the Registry, and it will always be this key, but I don't know what to do about it. Also, what if the key isn't there? How can I do this check?

Thanks!
freeberm#
I attached a code snippet which I used to accomplish this. You want to set the product name variables to something suitable obviously.