11!include " MUI2.nsh"
22
3- # TODO: All "suap-project-name" keys except "InstallDir" and
4- # "CreateShortcut" need to be changed to "suap-display-name"
5- # when that is available.
6-
7- Name " {suap-project-name}"
3+ Name " {suap-display-name}"
84OutFile " {suap-binary-dist-path}"
95InstallDir " $PROGRAMFILES64\cloudy-org\{suap-project-name}"
106
117VIProductVersion " {suap-project-version}"
12- VIAddVersionKey " ProductName" " {suap-project -name}"
8+ VIAddVersionKey " ProductName" " {suap-display -name}"
139VIAddVersionKey " FileDescription" " {suap-project-description}"
1410VIAddVersionKey " FileVersion" " {suap-project-version}"
1511
@@ -33,7 +29,7 @@ Section "MainSection"
3329 WriteUninstaller " $INSTDIR\uninstall.exe"
3430
3531 # Windows needs to know our application can be uninstalled via it's uninstall apps settings.
36- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}" " DisplayName" " {suap-project -name}"
32+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}" " DisplayName" " {suap-display -name}"
3733 WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}" " UninstallString" " $INSTDIR\uninstall.exe"
3834
3935 CreateShortcut " $DESKTOP\{suap-project-name}.lnk" " $INSTDIR\{suap-binary-name}.exe"
@@ -45,5 +41,7 @@ Section "Uninstall"
4541 Delete " $INSTDIR\uninstall.exe"
4642 RMDir " $INSTDIR"
4743
44+ Delete " $DESKTOP\{suap-project-name}.lnk"
45+
4846 DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}"
4947SectionEnd
0 commit comments