Skip to content

Commit 042c184

Browse files
committed
fix: app version not display on uninstall, no copyright and publisher
1 parent 2db7193 commit 042c184

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

suap/templates/nsis_installer_script.nsi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ VIProductVersion "{suap-project-version}"
99
VIAddVersionKey "ProductName" "{suap-display-name}"
1010
VIAddVersionKey "FileDescription" "{suap-project-description}"
1111
VIAddVersionKey "FileVersion" "{suap-project-version}"
12+
VIAddVersionKey "CompanyName" "Cloudy Org"
13+
VIAddVersionKey "LegalCopyright" "© 2026 Goldy"
1214

1315
SetCompressor /SOLID Lzma
1416

@@ -39,15 +41,17 @@ Section "MainSection"
3941
File "{suap-binary-path}"
4042
File "{suap-icon-path}"
4143

44+
# Placing shortcut in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
45+
CreateDirectory "$SMPROGRAMS\Cloudy"
46+
CreateShortcut "$SMPROGRAMS\Cloudy\{suap-project-name}.lnk" "$INSTDIR\{suap-binary-name}.exe" "" "$INSTDIR\{suap-icon-file-name}" 0
47+
4248
WriteUninstaller "$INSTDIR\uninstall.exe"
4349

4450
# Windows needs to know our application can be uninstalled via it's uninstall apps settings.
51+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}" "Publisher" "Cloudy Org"
4552
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}" "DisplayName" "{suap-display-name}"
53+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}" "DisplayVersion" "{suap-project-version}"
4654
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\{suap-project-name}" "UninstallString" "$INSTDIR\uninstall.exe"
47-
48-
# Placing shortcut in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
49-
CreateDirectory "$SMPROGRAMS\Cloudy"
50-
CreateShortcut "$SMPROGRAMS\Cloudy\{suap-project-name}.lnk" "$INSTDIR\{suap-binary-name}.exe" "" "$INSTDIR\{suap-icon-file-name}" 0
5155
SectionEnd
5256

5357
Section "Uninstall"

0 commit comments

Comments
 (0)