Archive: Uninstaller help :(


Uninstaller help :(
Hi another question, how could I access Windows remove/add file from NSIS installer.

I am trying to uninstall Windows SQL Desktop Edition (MSDE 2000A). It can be successfully removed from Windows Add or Remove Programs, but I would like to do this using NSIS uninstaller. Could any one give any examples or leads to how could I do this?

Thanks


Something like this:

Push $R0
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Windows SQL Desktop Edition (MSDE 2000A)" "UninstallString"
StrCmp $R0 "" +4
MessageBox MB_OKCANCEL|MB_ICONINFORMATION "Setup will now run the Windows SQL Desktop Edition (MSDE 2000A) uninstallation wizard." IDOK +2
Abort ;cancel was pressed
Exec $R0 ;run it
Pop $R0


You will need to check the correct Uninstall name (it probably won't be "Windows SQL Desktop Edition (MSDE 2000A)").

-Stu