Only silent install for upgrades

This commit is contained in:
Natsumi
2021-08-11 06:03:34 +12:00
parent 0bcee52851
commit 19d2755b6e

View File

@@ -96,10 +96,12 @@ Function .onInit
cancel:
Abort
next:
StrCpy $upgradeInstallation "true"
StrCpy $upgradeInstallation "true"
done:
${If} $upgradeInstallation == "false"
SetSilent normal
${EndIf}
FunctionEnd
Function createDesktopShortcut
@@ -169,5 +171,8 @@ Section "Uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VRCX"
Delete "$SMPROGRAMS\VRCX.lnk"
Delete "$DESKTOP\VRCX.lnk"
${IfNot} ${Silent}
Delete "$DESKTOP\VRCX.lnk"
${EndIf}
SectionEnd