summaryrefslogtreecommitdiff
path: root/indra/newview/installers/windows
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2018-11-02 07:59:51 -0400
committerNat Goodspeed <nat@lindenlab.com>2018-11-02 07:59:51 -0400
commit75cbe187a6572e904e2f931c6a1902b186eec844 (patch)
tree4834a2fc2ae130744a8cab90f8b659c565f33f98 /indra/newview/installers/windows
parenta5f492acf19664593b040a8cdff1e5e251f65dba (diff)
DRTVWR-447: Back out changeset 69118ad33b45: directly run updater
from NSIS installer, instead of via explorer.exe. A recent test run performed the install, then opened an Explorer window on My Documents. <eyeroll/>
Diffstat (limited to 'indra/newview/installers/windows')
-rw-r--r--indra/newview/installers/windows/installer_template.nsi13
1 files changed, 1 insertions, 12 deletions
diff --git a/indra/newview/installers/windows/installer_template.nsi b/indra/newview/installers/windows/installer_template.nsi
index adcf8fd0e4..76187b49a5 100644
--- a/indra/newview/installers/windows/installer_template.nsi
+++ b/indra/newview/installers/windows/installer_template.nsi
@@ -705,21 +705,10 @@ Function .onInstSuccess
# updater can detect the problem and adapt accordingly.
# Once everything is in order, the updater will run the specified
# viewer with the specified params.
- # 'Exec updater' causes the viewer to inherit elevated Admin privileges. See
- # http://mdb-blog.blogspot.com/2013/01/nsis-lunch-program-as-user-from-uac.html
- # for workaround: running the updater via explorer.exe.
- # Thing is, you can't pass parameters with the explorer.exe trick, so
- # you have to create a shortcut or a .bat file. Since we don't want a
- # permanent shortcut for the user to relaunch the updater like this
- # first time, create it in a temp location and delete it once we've
- # used it.
# Quote the updater executable and the viewer executable because each
# must be a distinct command-line token, but DO NOT quote the language
# string because it must decompose into separate command-line tokens.
- CreateShortCut "$TEMP\SLFirst.lnk" "$INSTDIR\$INSTEXE" \
- 'precheck "$INSTDIR\$VIEWER_EXE" $SHORTCUT_LANG_PARAM'
- Exec '"$WINDIR\explorer.exe" "$TEMP\SLFirst.lnk"'
- Delete "$TEMP\SLFirst.lnk"
+ Exec '"$INSTDIR\$INSTEXE" precheck "$INSTDIR\$VIEWER_EXE" $SHORTCUT_LANG_PARAM'
Pop $R0
#
FunctionEnd