Merge pull request #797 from kthchew/fix/update-shortcut

This commit is contained in:
Sefa Eyeoglu 2022-06-21 11:29:15 +02:00 committed by GitHub
commit efb1f4abf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ Section "Start Menu Shortcut" SM_SHORTCUTS
SectionEnd SectionEnd
Section "Desktop Shortcut" DESKTOP_SHORTCUTS Section /o "Desktop Shortcut" DESKTOP_SHORTCUTS
CreateShortcut "$DESKTOP\@Launcher_CommonName@.lnk" "$INSTDIR\@Launcher_APP_BINARY_NAME@.exe" "" "$INSTDIR\@Launcher_APP_BINARY_NAME@.exe" 0 CreateShortcut "$DESKTOP\@Launcher_CommonName@.lnk" "$INSTDIR\@Launcher_APP_BINARY_NAME@.exe" "" "$INSTDIR\@Launcher_APP_BINARY_NAME@.exe" 0
@ -252,6 +252,7 @@ Function .onInit
${GetParameters} $R0 ${GetParameters} $R0
${GetOptions} $R0 "/NoShortcuts" $R1 ${GetOptions} $R0 "/NoShortcuts" $R1
${IfNot} ${Errors} ${IfNot} ${Errors}
${OrIf} ${FileExists} "$InstDir\@Launcher_APP_BINARY_NAME@.exe"
!insertmacro UnselectSection ${SM_SHORTCUTS} !insertmacro UnselectSection ${SM_SHORTCUTS}
!insertmacro UnselectSection ${DESKTOP_SHORTCUTS} !insertmacro UnselectSection ${DESKTOP_SHORTCUTS}
${EndIf} ${EndIf}