fix(windows installer): old installers didn't uninstall first.

now they do so ensure shortcuts stay selected by default

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2023-06-30 23:04:55 -07:00
parent cea285f5f5
commit b67844e74c
No known key found for this signature in database
GPG Key ID: E10E321EB160949B

View File

@ -470,7 +470,6 @@ 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}