From ead2a26bee0636bd284890f22111b557dee78912 Mon Sep 17 00:00:00 2001 From: "Vladimir.Orlov" Date: Tue, 4 Dec 2018 14:34:21 +0300 Subject: [PATCH] win installer: update installation options dialog to support single exe launcher with long name. The change needs for Rider. --- build/conf/nsis/idea.nsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/conf/nsis/idea.nsi b/build/conf/nsis/idea.nsi index 46c734e2644e..ff2bd4e19d4a 100644 --- a/build/conf/nsis/idea.nsi +++ b/build/conf/nsis/idea.nsi @@ -392,6 +392,16 @@ Function ConfirmDesktopShortcut ${If} $R1 != "" !insertmacro INSTALLOPTIONS_WRITE "Desktop.ini" "Field $secondLauncherShortcut" "Type" "checkbox" !insertmacro INSTALLOPTIONS_WRITE "Desktop.ini" "Field $secondLauncherShortcut" "Text" $R1 + ${Else} + Push $R0 + Push $R1 + !insertmacro INSTALLOPTIONS_READ $R0 "Desktop.ini" "Field $secondLauncherShortcut" "Right" + IntOp $R1 $R0 - 10 + !insertmacro INSTALLOPTIONS_WRITE "Desktop.ini" "Field $launcherShortcut" "Right" $R1 + IntOp $R1 $R0 - 5 + !insertmacro INSTALLOPTIONS_WRITE "Desktop.ini" "Field $secondLauncherShortcut" "Left" $R1 + Pop $R1 + Pop $R0 ${EndIf} ; if jre x86 for the build is available then add checkbox to Installation Options dialog