win installer: update installation options dialog to support single exe launcher with long name. The change needs for Rider.

This commit is contained in:
Vladimir.Orlov
2018-12-04 14:35:27 +03:00
parent 022a868985
commit ead2a26bee
+10
View File
@@ -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