Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
d66a999d
Commit
d66a999d
authored
13 years ago
by
Brad Payne (Vir Linden)
Browse files
Options
Downloads
Patches
Plain Diff
SH-2515 WIP - uninstall viewer 2 when installing viewer 3+
parent
55cbe344
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/installers/windows/installer_template.nsi
+33
-9
33 additions, 9 deletions
indra/newview/installers/windows/installer_template.nsi
with
33 additions
and
9 deletions
indra/newview/installers/windows/installer_template.nsi
+
33
−
9
View file @
d66a999d
...
@@ -408,9 +408,9 @@ Push $2
...
@@ -408,9 +408,9 @@ Push $2
; Required since ProfileImagePath is of type REG_EXPAND_SZ
; Required since ProfileImagePath is of type REG_EXPAND_SZ
ExpandEnvStrings $2 $2
ExpandEnvStrings $2 $2
RMDir /r "$2\Application Data\SecondLife
Restore
\"
RMDir /r "$2\Application Data\SecondLife\"
CreateDirectory "$2\Application Data\SecondLife
Restore
\"
CreateDirectory "$2\Application Data\SecondLife\"
CopyFiles "$TEMP\SecondLifeSettingsBackup\$0\*" "$2\Application Data\SecondLife
Restore
\"
CopyFiles "$TEMP\SecondLifeSettingsBackup\$0\*" "$2\Application Data\SecondLife\"
CONTINUE:
CONTINUE:
IntOp $0 $0 + 1
IntOp $0 $0 + 1
...
@@ -425,9 +425,9 @@ Pop $0
...
@@ -425,9 +425,9 @@ Pop $0
Push $0
Push $0
ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common AppData"
ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common AppData"
StrCmp $0 "" +2
StrCmp $0 "" +2
RMDir /r "$2\Application Data\SecondLife
Restore
\"
RMDir /r "$2\Application Data\SecondLife\"
CreateDirectory "$2\Application Data\SecondLife
Restore
\"
CreateDirectory "$2\Application Data\SecondLife\"
CopyFiles "$TEMP\SecondLifeSettingsBackup\AllUsers\*" "$2\Application Data\SecondLife
Restore
\"
CopyFiles "$TEMP\SecondLifeSettingsBackup\AllUsers\*" "$2\Application Data\SecondLife\"
Pop $0
Pop $0
FunctionEnd
FunctionEnd
...
@@ -863,10 +863,8 @@ Call CheckNetworkConnection ; ping secondlife.com
...
@@ -863,10 +863,8 @@ Call CheckNetworkConnection ; ping secondlife.com
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Don't remove cache files during a regular install, removing the inventory cache on upgrades results in lots of damage to the servers.
;;; Don't remove cache files during a regular install, removing the inventory cache on upgrades results in lots of damage to the servers.
;Call RemoveCacheFiles ; Installing over removes potentially corrupted
;Call RemoveCacheFiles ; Installing over removes potentially corrupted
Call PreserveCacheFiles
Call RestoreCacheFiles
; VFS and cache files.
; VFS and cache files.
Call PreserveCacheFiles
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Need to clean out shader files from previous installs to fix DEV-5663
;;; Need to clean out shader files from previous installs to fix DEV-5663
...
@@ -948,6 +946,32 @@ WriteRegExpandStr HKEY_CLASSES_ROOT "x-grid-location-info\shell\open\command" ""
...
@@ -948,6 +946,32 @@ WriteRegExpandStr HKEY_CLASSES_ROOT "x-grid-location-info\shell\open\command" ""
; write out uninstaller
; write out uninstaller
WriteUninstaller "$INSTDIR\uninst.exe"
WriteUninstaller "$INSTDIR\uninst.exe"
; Remove existing "Second Life Viewer 2" install if any.
StrCmp $INSTDIR "$PROGRAMFILES\SecondLifeViewer2" SLV2_DONE
IfFileExists "$PROGRAMFILES\SecondLifeViewer2\uninst.exe" SLV2_FOUND SLV2_DONE
SLV2_FOUND:
ExecWait '"$PROGRAMFILES\SecondLifeViewer2\uninst.exe" /S'
; cheesy spin wait for uninstall to finish - uninstaller is supposed
; to take _? argument which combined with ExecWait would avoid need
; for this, but have not been able to get it to work.
SPIN_LOOP:
Sleep 500
IntOp $0 $0 + 500
IntCmp $0 10000 SLV2_TIMEOUT CONT SLV2_TIMEOUT
SLV2_TIMEOUT:
MsgBox MB_OK "Error in uninstall"
Goto SLV2_DONE
CONT:
; Do we know this is the last file removed?
IfFileExists "$PROGRAMFILES\SecondLifeViewer2\uninst.exe" SPIN_LOOP SLV2_DONE
SLV2_DONE:
MessageBox MB_OK "Restoring Cache Files"
Call RestoreCacheFiles
; end of default section
; end of default section
SectionEnd
SectionEnd
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment