diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2017-08-17 18:48:41 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2017-08-17 18:48:41 -0400 |
commit | 1d2ded8c5f1893a246fb1b7d7b5f12f451750827 (patch) | |
tree | 6332247f6aa664f7b8aca5bf7f3ca68657dfb774 /indra/newview/installers | |
parent | 2368c44a8e2b031e5a8ac199923a016915cfe96a (diff) |
MAINT-7661: Make NSIS installer place .winstall marker file.
This reduces a timing hole in which one instance of SL_Launcher might place
a .winstall marker file in the download directory and run the downloaded
installer, but another SL_Launcher instance might discover that marker and try
to delete the directory before the NSIS install completes.
Diffstat (limited to 'indra/newview/installers')
-rw-r--r-- | indra/newview/installers/windows/installer_template.nsi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/installers/windows/installer_template.nsi b/indra/newview/installers/windows/installer_template.nsi index 4ca850e30f..ade808e3e2 100644 --- a/indra/newview/installers/windows/installer_template.nsi +++ b/indra/newview/installers/windows/installer_template.nsi @@ -714,6 +714,13 @@ FunctionEnd ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Function .onInstSuccess
Call CheckWindowsServPack # Warn if not on the latest SP before asking to launch.
+ ;; $EXEDIR is where we find the installer file
+ ;; Put a marker file there so VMP will know we're done
+ ;; and it can delete the download directory next time.
+ ;; http://nsis.sourceforge.net/Write_text_to_a_file
+ FileOpen $9 "$EXEDIR\nsis.winstall" w
+ FileWrite $9 "NSIS done$\n"
+ FileClose $9
Push $R0 # Option value, unused#
StrCmp $SKIP_AUTORUN "true" +2;
# Assumes SetOutPath $INSTDIR
|