Archive: What is the proper UNINSTALL approach?


What is the proper UNINSTALL approach?
:winamp: Should the Install section always start by attempting to uninstall the previously installed version?

:winamp: If so, is

ExecWait '"$INSTDIR\uninstall.exe" _?=$INSTDIR'
the right way to accomplish that?

:winamp: If not, how would one go about making sure that traces from older versions are really removed from the system? You know, as development evolves, filenames and directory names change...

Thanks!
Victor

Take a look in the included example makensis.nsi, it is a real world installer that you've seen in action several times and it answers everything that you've asked.


Originally posted by Red Wine
Take a look in the included example makensis.nsi, it is a real world installer that you've seen in action several times and it answers everything that you've asked.
Of course :). Why couldn't I think about this before?

I just found it in C:\Program Files\NSIS\Examples.

Thank you, Red Wine!

Victor