Merge pull request #788 from kthchew/fix/win-install-version
This commit is contained in:
commit
036a826b3a
@ -1,6 +1,7 @@
|
|||||||
set(Launcher_CommonName "PolyMC")
|
set(Launcher_CommonName "PolyMC")
|
||||||
|
|
||||||
set(Launcher_Copyright "PolyMC Contributors\\n© 2012-2021 MultiMC Contributors" PARENT_SCOPE)
|
set(Launcher_Copyright "PolyMC Contributors\\n© 2012-2021 MultiMC Contributors")
|
||||||
|
set(Launcher_Copyright "${Launcher_Copyright}" PARENT_SCOPE)
|
||||||
set(Launcher_Domain "polymc.org" PARENT_SCOPE)
|
set(Launcher_Domain "polymc.org" PARENT_SCOPE)
|
||||||
set(Launcher_Name "${Launcher_CommonName}" PARENT_SCOPE)
|
set(Launcher_Name "${Launcher_CommonName}" PARENT_SCOPE)
|
||||||
set(Launcher_DisplayName "${Launcher_CommonName}" PARENT_SCOPE)
|
set(Launcher_DisplayName "${Launcher_CommonName}" PARENT_SCOPE)
|
||||||
|
@ -104,7 +104,11 @@ OutFile "../@Launcher_CommonName@-Setup.exe"
|
|||||||
; Version info
|
; Version info
|
||||||
VIProductVersion "@Launcher_RELEASE_VERSION_NAME4@"
|
VIProductVersion "@Launcher_RELEASE_VERSION_NAME4@"
|
||||||
VIFileVersion "@Launcher_RELEASE_VERSION_NAME4@"
|
VIFileVersion "@Launcher_RELEASE_VERSION_NAME4@"
|
||||||
VIAddVersionKey "FileVersion" "@Launcher_RELEASE_VERSION_NAME4@"
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "@Launcher_CommonName@"
|
||||||
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "@Launcher_CommonName@ Installer"
|
||||||
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "@Launcher_Copyright@"
|
||||||
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "@Launcher_RELEASE_VERSION_NAME4@"
|
||||||
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "@Launcher_RELEASE_VERSION_NAME4@"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
@ -140,7 +144,10 @@ Section "@Launcher_CommonName@"
|
|||||||
WriteRegStr HKCU "${UNINST_KEY}" "QuietUninstallString" '"$INSTDIR\uninstall.exe" /S'
|
WriteRegStr HKCU "${UNINST_KEY}" "QuietUninstallString" '"$INSTDIR\uninstall.exe" /S'
|
||||||
WriteRegStr HKCU "${UNINST_KEY}" "InstallLocation" "$INSTDIR"
|
WriteRegStr HKCU "${UNINST_KEY}" "InstallLocation" "$INSTDIR"
|
||||||
WriteRegStr HKCU "${UNINST_KEY}" "Publisher" "@Launcher_CommonName@ Contributors"
|
WriteRegStr HKCU "${UNINST_KEY}" "Publisher" "@Launcher_CommonName@ Contributors"
|
||||||
WriteRegStr HKCU "${UNINST_KEY}" "ProductVersion" "@Launcher_RELEASE_VERSION_NAME4@"
|
WriteRegStr HKCU "${UNINST_KEY}" "Version" "@Launcher_RELEASE_VERSION_NAME4@"
|
||||||
|
WriteRegStr HKCU "${UNINST_KEY}" "DisplayVersion" "@Launcher_RELEASE_VERSION_NAME@"
|
||||||
|
WriteRegStr HKCU "${UNINST_KEY}" "VersionMajor" "@Launcher_VERSION_MAJOR@"
|
||||||
|
WriteRegStr HKCU "${UNINST_KEY}" "VersionMinor" "@Launcher_VERSION_MINOR@"
|
||||||
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
||||||
IntFmt $0 "0x%08X" $0
|
IntFmt $0 "0x%08X" $0
|
||||||
WriteRegDWORD HKCU "${UNINST_KEY}" "EstimatedSize" "$0"
|
WriteRegDWORD HKCU "${UNINST_KEY}" "EstimatedSize" "$0"
|
||||||
|
Loading…
Reference in New Issue
Block a user