aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/installers
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/installers')
-rw-r--r--linden/indra/newview/installers/windows/installer_template.nsi44
1 files changed, 22 insertions, 22 deletions
diff --git a/linden/indra/newview/installers/windows/installer_template.nsi b/linden/indra/newview/installers/windows/installer_template.nsi
index ee79954..27131ba 100644
--- a/linden/indra/newview/installers/windows/installer_template.nsi
+++ b/linden/indra/newview/installers/windows/installer_template.nsi
@@ -62,7 +62,7 @@ SetOverwrite on ; stomp files by default
62AutoCloseWindow true ; after all files install, close window 62AutoCloseWindow true ; after all files install, close window
63 63
64InstallDir "$PROGRAMFILES\${INSTNAME}" 64InstallDir "$PROGRAMFILES\${INSTNAME}"
65InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\${INSTNAME}" "" 65InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\${INSTNAME}" ""
66!ifdef UPDATE 66!ifdef UPDATE
67DirText $(DirectoryChooseTitle) $(DirectoryChooseUpdate) 67DirText $(DirectoryChooseTitle) $(DirectoryChooseUpdate)
68!else 68!else
@@ -88,7 +88,7 @@ Var INSTSHORTCUT
88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
89Function PostInstallExe 89Function PostInstallExe
90push $0 90push $0
91 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "PostInstallExe" 91 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "PostInstallExe"
92 ;MessageBox MB_OK '$0' 92 ;MessageBox MB_OK '$0'
93 ExecWait '$0' 93 ExecWait '$0'
94pop $0 94pop $0
@@ -108,19 +108,19 @@ push $R0
108 StrCpy $INSTPROG "$R0" 108 StrCpy $INSTPROG "$R0"
109 StrCpy $INSTEXE "$R0.exe" 109 StrCpy $INSTEXE "$R0.exe"
110 110
111 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "" 111 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" ""
112 ; If key doesn't exist, skip install 112 ; If key doesn't exist, skip install
113 IfErrors ABORT 113 IfErrors ABORT
114 StrCpy $INSTDIR "$0" 114 StrCpy $INSTDIR "$0"
115 115
116 ; We now have a directory to install to. Get the startup parameters and shortcut as well. 116 ; We now have a directory to install to. Get the startup parameters and shortcut as well.
117 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Flags" 117 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Flags"
118 IfErrors +2 118 IfErrors +2
119 StrCpy $INSTFLAGS "$0" 119 StrCpy $INSTFLAGS "$0"
120 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Shortcut" 120 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Shortcut"
121 IfErrors +2 121 IfErrors +2
122 StrCpy $INSTSHORTCUT "$0" 122 StrCpy $INSTSHORTCUT "$0"
123 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Exe" 123 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Exe"
124 IfErrors +2 124 IfErrors +2
125 StrCpy $INSTEXE "$0" 125 StrCpy $INSTEXE "$0"
126 Goto FINISHED 126 Goto FINISHED
@@ -148,19 +148,19 @@ push $R0
148 StrCpy $INSTPROG "$R0" 148 StrCpy $INSTPROG "$R0"
149 StrCpy $INSTEXE "$R0.exe" 149 StrCpy $INSTEXE "$R0.exe"
150 150
151 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "" 151 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" ""
152 ; If key doesn't exist, skip install 152 ; If key doesn't exist, skip install
153 IfErrors ABORT 153 IfErrors ABORT
154 StrCpy $INSTDIR "$0" 154 StrCpy $INSTDIR "$0"
155 155
156 ; We now have a directory to install to. Get the startup parameters and shortcut as well. 156 ; We now have a directory to install to. Get the startup parameters and shortcut as well.
157 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Flags" 157 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Flags"
158 IfErrors +2 158 IfErrors +2
159 StrCpy $INSTFLAGS "$0" 159 StrCpy $INSTFLAGS "$0"
160 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Shortcut" 160 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Shortcut"
161 IfErrors +2 161 IfErrors +2
162 StrCpy $INSTSHORTCUT "$0" 162 StrCpy $INSTSHORTCUT "$0"
163 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Exe" 163 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Exe"
164 IfErrors +2 164 IfErrors +2
165 StrCpy $INSTEXE "$0" 165 StrCpy $INSTEXE "$0"
166 Goto FINISHED 166 Goto FINISHED
@@ -195,7 +195,7 @@ Function RemoveNSIS
195 Push $0 195 Push $0
196 ; Grab the installation directory of the old version 196 ; Grab the installation directory of the old version
197 DetailPrint $(RemoveOldNSISVersion) 197 DetailPrint $(RemoveOldNSISVersion)
198 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "" 198 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" ""
199 199
200 ; If key doesn't exist, skip uninstall 200 ; If key doesn't exist, skip uninstall
201 IfErrors NO_NSIS 201 IfErrors NO_NSIS
@@ -271,7 +271,7 @@ FunctionEnd
271;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 271;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
272Function CheckIfAlreadyCurrent 272Function CheckIfAlreadyCurrent
273 Push $0 273 Push $0
274 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Version" 274 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Version"
275 StrCmp $0 ${VERSION_LONG} 0 DONE 275 StrCmp $0 ${VERSION_LONG} 0 DONE
276 MessageBox MB_OKCANCEL $(CheckIfCurrentMB) /SD IDOK IDOK DONE 276 MessageBox MB_OKCANCEL $(CheckIfCurrentMB) /SD IDOK IDOK DONE
277 Quit 277 Quit
@@ -621,9 +621,9 @@ SetShellVarContext all
621Call un.CloseSecondLife 621Call un.CloseSecondLife
622 622
623; Clean up registry keys (these should all be !defines somewhere) 623; Clean up registry keys (these should all be !defines somewhere)
624DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" 624DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG"
625DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" 625DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG"
626DeleteRegKey HKEY_LOCAL_MACHINE "Software\Linden Research, Inc.\Installer Language" 626DeleteRegKey HKEY_LOCAL_MACHINE "Software\meta-impy\Installer Language"
627 627
628; Clean up shortcuts 628; Clean up shortcuts
629Delete "$SMPROGRAMS\$INSTSHORTCUT\*.*" 629Delete "$SMPROGRAMS\$INSTSHORTCUT\*.*"
@@ -863,7 +863,7 @@ FunctionEnd
863Function .onInit 863Function .onInit
864 864
865 ; read the language from registry (ok if not there) and set langauge menu 865 ; read the language from registry (ok if not there) and set langauge menu
866 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\${INSTNAME}" "InstallerLanguage" 866 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\${INSTNAME}" "InstallerLanguage"
867 StrCpy $LANGUAGE $0 867 StrCpy $LANGUAGE $0
868 868
869 Push "" 869 Push ""
@@ -882,14 +882,14 @@ Function .onInit
882 Abort 882 Abort
883 883
884 ; save language in registry 884 ; save language in registry
885 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\${INSTNAME}" "InstallerLanguage" $LANGUAGE 885 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\${INSTNAME}" "InstallerLanguage" $LANGUAGE
886FunctionEnd 886FunctionEnd
887 887
888;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 888;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
889Function un.onInit 889Function un.onInit
890 890
891 ; read language from registry and set for ininstaller 891 ; read language from registry and set for ininstaller
892 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\${INSTNAME}" "InstallerLanguage" 892 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\${INSTNAME}" "InstallerLanguage"
893 StrCpy $LANGUAGE $0 893 StrCpy $LANGUAGE $0
894 894
895FunctionEnd 895FunctionEnd
@@ -992,11 +992,11 @@ CreateShortCut "$INSTDIR\$INSTSHORTCUT Museum Spanish.lnk" "$INSTDIR\$INSTEXE" "
992 992
993;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 993;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
994; Write registry 994; Write registry
995WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "" "$INSTDIR" 995WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "" "$INSTDIR"
996WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Version" "${VERSION_LONG}" 996WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Version" "${VERSION_LONG}"
997WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Flags" "$INSTFLAGS" 997WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Flags" "$INSTFLAGS"
998WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Shortcut" "$INSTSHORTCUT" 998WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Shortcut" "$INSTSHORTCUT"
999WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Exe" "$INSTEXE" 999WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Exe" "$INSTEXE"
1000WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "DisplayName" "$INSTPROG (remove only)" 1000WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "DisplayName" "$INSTPROG (remove only)"
1001WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "UninstallString" '"$INSTDIR\uninst.exe" /P="$INSTPROG"' 1001WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "UninstallString" '"$INSTDIR\uninst.exe" /P="$INSTPROG"'
1002 1002