Skip to content
⌘ NSIS Forum Archive

Registry

4 posts

duermer#

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
nandhp#
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"
VegetaSan#
Look in the {NSISDIR}Examples\Bigtest.nsi

Very usefull 🙂

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