OPENIDE windows installers update

(cherry picked from commit be30f61aebddbc7af8a313827e99bb853a47278c)

(cherry picked from commit c3a921943b)
(cherry picked from commit ae686d48f0)
This commit is contained in:
axiom
2025-03-07 20:07:24 +04:00
committed by Nikita Iarychenko
parent b82ae122e9
commit 74bd5c609e

View File

@@ -1,3 +1,5 @@
; Modified by Dmitrij Pochepko at 2025 as part of the OpenIDE project (https://openide.ru).
; Any modifications are available on the same license terms as the original source code.
Unicode true
ManifestDPIAware true
SetCompressor lzma
@@ -41,10 +43,10 @@ OutFile "${OUT_DIR}\${OUT_FILE}.exe"
InstallDir "${DEFAULT_INST_DIR}"
!define /date CURRENT_YEAR "%Y"
VIAddVersionKey /LANG=0 "CompanyName" "JetBrains s.r.o."
VIAddVersionKey /LANG=0 "CompanyName" "OpenIDE"
VIAddVersionKey /LANG=0 "FileDescription" "${MUI_PRODUCT} Windows Installer"
VIAddVersionKey /LANG=0 "FileVersion" "${VER_BUILD}"
VIAddVersionKey /LANG=0 "LegalCopyright" "Copyright 2000-${CURRENT_YEAR} JetBrains s.r.o."
VIAddVersionKey /LANG=0 "LegalCopyright" "Copyright 2025-${CURRENT_YEAR} OpenIDE"
VIAddVersionKey /LANG=0 "ProductName" "${MUI_PRODUCT}"
VIAddVersionKey /LANG=0 "ProductVersion" "${MUI_VERSION_MAJOR}.${MUI_VERSION_MINOR}"
VIFileVersion ${FILE_VERSION_NUM}
@@ -289,7 +291,7 @@ Page custom uninstallOldVersionDialog
Page custom ConfirmDesktopShortcut
!define MUI_PAGE_HEADER_TEXT "$(choose_start_menu_folder)"
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "${MANUFACTURER}"
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "OpenIDE"
!insertmacro MUI_PAGE_STARTMENU Application $startMenuFolder
!define MUI_PAGE_HEADER_TEXT "$(installing_product)"
@@ -356,9 +358,9 @@ Function silentConfigReader
!define msg1 "How to run installation in silent mode:$\n"
!define msg2 "<installation> /S /CONFIG=<path to silent config with file name> /D=<install dir>$\n$\n"
!define msg3 "Examples:$\n"
!define msg4 "Installation.exe /S /CONFIG=d:\download\silent.config /D=d:\JetBrains\Product$\n"
!define msg4 "Installation.exe /S /CONFIG=d:\download\silent.config /D=d:\OpenIDE\Product$\n"
!define msg5 "Run installation in silent mode with logging:$\n"
!define msg6 "Installation.exe /S /CONFIG=d:\download\silent.config /LOG=d:\JetBrains\install.log /D=d:\JetBrains\Product$\n"
!define msg6 "Installation.exe /S /CONFIG=d:\download\silent.config /LOG=d:\OpenIDE\install.log /D=d:\OpenIDE\Product$\n"
MessageBox MB_OK|MB_ICONSTOP "${msg1}${msg2}${msg3}${msg4}${msg5}${msg6}"
${LogText} "ERROR: silent installation: incorrect parameters."
Abort
@@ -555,7 +557,7 @@ FunctionEnd
; $R6(out) - the 'Top' position for the new checkbox
Function getTopPosition
IntOp $R9 $R8 - 1
${If} $R9 = $control_fields
${If} $R9 = $control_fields
!insertmacro INSTALLOPTIONS_READ $R6 "UninstallOldVersions.ini" "Field $R8" "Top"
${Else}
!insertmacro INSTALLOPTIONS_READ $R6 "UninstallOldVersions.ini" "Field $R9" "Bottom"
@@ -890,8 +892,8 @@ skip_ipr:
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "InstallLocation" "$INSTDIR"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "DisplayIcon" "$productLauncher"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "DisplayVersion" "${VER_BUILD}"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "Publisher" "JetBrains s.r.o."
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "URLInfoAbout" "https://www.jetbrains.com/products"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "Publisher" "OpenIDE"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "URLInfoAbout" "https://www.openide.ru"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "InstallType" "$baseRegKey"
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "NoModify" 1
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_WITH_VER}" "NoRepair" 1