Archive: Registry


Registry
Hi,

I have the follow problem.

I want that my Installation write a Regkey that I could uninstall the programm from "Software" in the "Systemcontrol".

Sincerly Patrick Hennig


WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ProductName" "DisplayName" "Product Name"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ProductName" "UninstallString" '"$INSTDIR\uninst.exe"'



Then in your uninstaller section use this to get rid of it:

DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ProductName"


Look in the {NSISDIR}Examples\Bigtest.nsi

Very usefull :)

You kinda remind me of myself 2 1/2 months ago


The Users Manual contains detailed information about this subject (see appendix C).