diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-07-17 11:51:51 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-07-17 12:29:34 +0200 |
commit | 3f46574400609ee32603dbc8ebfaaaab3307a951 (patch) | |
tree | b84e552d77fde52074aafe3f3dcee19c9b1e4af5 | |
parent | f7534ccb6c11231d5b2c04b2e4197cf30f5da12a (diff) |
[feat] register uninstaller in add/remove programs on windows
- Resolves: #13
-rwxr-xr-x | win/template.nsi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win/template.nsi b/win/template.nsi index fefbdf2..0420886 100755 --- a/win/template.nsi +++ b/win/template.nsi @@ -51,6 +51,17 @@ Section "InstallFiles" SetOutPath $INSTDIR WriteUninstaller $INSTDIR\uninstall.exe + ; Add ourselves to Add/remove programs + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "DisplayName" "$app_name" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "InstallLocation" "$INSTDIR" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "DisplayIcon" "$INSTDIR\$app_name_lower.ico" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "Readme" "$INSTDIR\readme.txt" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "DisplayVersion" "$version" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "Publisher" "LEAP Encryption Access Project" + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "NoModify" 1 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$app_name_lower" "NoRepair" 1 + ;Start Menu createDirectory "$SMPROGRAMS\$app_name\" createShortCut "$SMPROGRAMS\$app_name\$app_name.lnk" "$INSTDIR\bitmask-systray.exe" "" "$INSTDIR\$app_name_lower.ico" |