Skip to content
⌘ NSIS Forum Archive

To appear in the add or remove programs

3 posts

rakeshval#

To appear in the add or remove programs

What do i need to do so that the application i set up using the NSIS installer need to appear on the add or remove programs list
any#
take a look at Appendix D.2: Add uninstall information to Add/Remove Programs
and the WriteRegStr reference

here is an example from the makensis.nsi

  WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "UninstallString" '"$INSTDIR\uninst-nsis.exe"'
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "InstallLocation" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "DisplayName" "Nullsoft Install System"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "DisplayIcon" "$INSTDIR\NSIS.exe,0"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "DisplayVersion" "${VERSION}"
regards,
any
onad#
Where "NSIS" is your program name or better your application in a GUID.

TIP:
Take a look with regedt32 how other installed applications create these values and what info is added.