VRCX Installer 1

This commit is contained in:
Natsumi
2021-08-03 20:50:05 +12:00
parent c0b1b2d094
commit f0c8e27e40
2 changed files with 53 additions and 46 deletions
+2
View File
@@ -0,0 +1,2 @@
"C:\Program Files (x86)\NSIS\makensis.exe" installer.nsi
pause
+10 -5
View File
@@ -91,14 +91,14 @@ Function .onInit
Abort
${EndIf}
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
"VRCX is already installed. $\n$\nClick `OK` to upgrade the \
existing installation or `Cancel` to cancel this upgrade." \
IDOK upgrade
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "VRCX is already installed. $\n$\nClick `OK` to upgrade the existing installation or `Cancel` to cancel this upgrade." /SD IDOK IDCANCEL cancel
Goto next
cancel:
Abort
next:
upgrade:
StrCpy $upgradeInstallation "true"
done:
FunctionEnd
@@ -143,6 +143,11 @@ Section "Install" SecInstall
CreateShortCut "$SMPROGRAMS\VRCX.lnk" "$INSTDIR\VRCX.exe"
ApplicationID::Set "$SMPROGRAMS\VRCX.lnk" "VRCX"
${If} ${Silent}
SetOutPath $INSTDIR
ShellExecAsUser::ShellExecAsUser "" "$INSTDIR\VRCX.exe" ""
${EndIf}
SectionEnd
;--------------------------------