From 19d2755b6e92d4f61c7c4e5a795d0a5007013911 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Wed, 11 Aug 2021 06:03:34 +1200 Subject: [PATCH] Only silent install for upgrades --- Installer/installer.nsi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Installer/installer.nsi b/Installer/installer.nsi index e773ec41..aa9f0d68 100644 --- a/Installer/installer.nsi +++ b/Installer/installer.nsi @@ -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