Skip to content
⌘ NSIS Forum Archive

Uninstaller Repair, Modify Options

2 posts

amosunfemi#

Uninstaller Repair, Modify Options

Does any in the forum knows how to add Repair and Modify Options to an Uninstaller.
Thanks.
RossW#
In your install section add:

;Create reg entries for Add/Remove Programs
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${appname}" "DisplayName" "${appname}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${appname}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${appname}" "NoModify" 0
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${appname}" "NoRepair" 0