| 1 |
;=============================================== |
| 2 |
; Requires following !defines in the calling *.nsi file |
| 3 |
; Examples: |
| 4 |
; REGISTRYNAME "TheHesslingEditor" |
| 5 |
; LONGNAME "The Hessling Editor" |
| 6 |
; Can't have slashes in name |
| 7 |
; VERSION "3.3" |
| 8 |
; Version with dots |
| 9 |
; MACH "x64" |
| 10 |
; Machine achitecture for displaying in Control Panel Uninstall |
| 11 |
; KEYFILE "${SHORTNAME}.exe" |
| 12 |
; Name of key installed file in $INSTALLDIR |
| 13 |
; DISPLAYICON "$INSTDIR\${SHORTNAME}.exe,0" |
| 14 |
; Installed file Icon |
| 15 |
; UNINSTALLER "${SHORTNAME}un.exe" |
| 16 |
; Name of uninstaller executable |
| 17 |
;---------------------------------------------- |
| 18 |
; These are optional... |
| 19 |
; SFGROUP "30846" |
| 20 |
; Group Id on SourceForge |
| 21 |
; SFHOME "http://rexxwrapper.sourceforge.net" |
| 22 |
; SF Home URL |
| 23 |
;=============================================== |
| 24 |
; |
| 25 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "DisplayName" "${LONGNAME}" |
| 26 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "DisplayIcon" "${DISPLAYICON}" |
| 27 |
!ifdef SFHOME |
| 28 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "HelpLink" "${SFHOME}" |
| 29 |
!endif |
| 30 |
!ifdef SFGROUP |
| 31 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "URLUpdateInfo" "http://sourceforge.net/project/showfiles.php?group_id=${SFGROUP}" |
| 32 |
!endif |
| 33 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "URLInfoAbout" "http://www.rexx.org/" |
| 34 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "DisplayVersion" "${VERSION}" |
| 35 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "Publisher" "Mark Hessling" |
| 36 |
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "UninstallString" '"$INSTDIR\${UNINSTALLER}"' |
| 37 |
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "InstallLocation" '"$INSTDIR"' |
| 38 |
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "UnInstallLocation" "$INSTDIR" ; dont quote it |
| 39 |
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "NoModify" 0x00000001 |
| 40 |
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REGISTRYNAME}" "NoRepair" 0x00000001 |
| 41 |
WriteUninstaller "$INSTDIR\${UNINSTALLER}" |