From d60deb7025dc138249812c51e29b7f3ac42e984e Mon Sep 17 00:00:00 2001 From: axiom Date: Fri, 7 Mar 2025 20:07:24 +0400 Subject: [PATCH] OPENIDE windows installers update (cherry picked from commit be30f61aebddbc7af8a313827e99bb853a47278c) (cherry picked from commit c3a921943b0f786bddae146cf9e78fa4d75e403e) (cherry picked from commit ae686d48f0a265d9fcbc1dff18387665568da91c) --- build/conf/nsis/idea.nsi | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build/conf/nsis/idea.nsi b/build/conf/nsis/idea.nsi index 14df03f2996d..d47a8a5c7a0a 100644 --- a/build/conf/nsis/idea.nsi +++ b/build/conf/nsis/idea.nsi @@ -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 @@ -40,10 +42,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} @@ -208,7 +210,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)" @@ -272,9 +274,9 @@ Function silentConfigReader !define msg1 "How to run installation in silent mode:$\n" !define msg2 " /S /CONFIG= /D=$\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 @@ -492,7 +494,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"