summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2019-02-06 09:17:06 -0500
committerNat Goodspeed <nat@lindenlab.com>2019-02-06 09:17:06 -0500
commitd779a03f0bee51110a30a52eecc352f5074fa30a (patch)
treee66a1a4ea2bc2af11cfdeb16a738321b11508226 /indra/newview
parentd588660db1a1232731e3fb29eadc1c3951bf5dc3 (diff)
SL-10469: Add diagnostic popup when trying to delete old shortcuts.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/installers/windows/installer_template.nsi26
1 files changed, 26 insertions, 0 deletions
diff --git a/indra/newview/installers/windows/installer_template.nsi b/indra/newview/installers/windows/installer_template.nsi
index 8af0f057ae..6bf4dba142 100644
--- a/indra/newview/installers/windows/installer_template.nsi
+++ b/indra/newview/installers/windows/installer_template.nsi
@@ -611,6 +611,32 @@ Delete "$INSTDIR\releasenotes.txt"
# any such old shortcuts.
SetShellVarContext current
+Push $0 # FindFirst context
+Push $1 # FindFirst/FindNext filename
+Push $2 # cumulative filenames
+
+StrCpy $2 "Checking $SMPROGRAMS\$INSTSHORTCUT$\nAbout to delete:"
+
+ClearErrors
+FindFirst $0 $1 "$SMPROGRAMS\$INSTSHORTCUT\*.*"
+loop:
+IfErrors done
+ StrCpy $2 "$2$\n$SMPROGRAMS\$INSTSHORTCUT\$1"
+ FindNext $0 $1
+ Goto loop
+done:
+FindClose $0
+
+StrCpy $2 "$2$\n$\nChecking $DESKTOP\$INSTSHORTCUT.lnk"
+IfFileExists "$DESKTOP\$INSTSHORTCUT.lnk" 0 +2
+StrCpy $2 "$2$\n$DESKTOP\$INSTSHORTCUT.lnk"
+
+MessageBox MB_OK "$2"
+
+Pop $2
+Pop $1
+Pop $0
+
# This stanza should match the $SMPROGRAMS and $DESKTOP deletions in the
# "clean up shortcuts" passage in Section Uninstall. Don't bother with the
# shortcuts in $INSTDIR because we're just about to (over)write those.