diff options
Diffstat (limited to 'linden/indra/newview/installers/windows/installer_template.nsi')
-rw-r--r-- | linden/indra/newview/installers/windows/installer_template.nsi | 44 |
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 | |||
62 | AutoCloseWindow true ; after all files install, close window | 62 | AutoCloseWindow true ; after all files install, close window |
63 | 63 | ||
64 | InstallDir "$PROGRAMFILES\${INSTNAME}" | 64 | InstallDir "$PROGRAMFILES\${INSTNAME}" |
65 | InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\${INSTNAME}" "" | 65 | InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\${INSTNAME}" "" |
66 | !ifdef UPDATE | 66 | !ifdef UPDATE |
67 | DirText $(DirectoryChooseTitle) $(DirectoryChooseUpdate) | 67 | DirText $(DirectoryChooseTitle) $(DirectoryChooseUpdate) |
68 | !else | 68 | !else |
@@ -88,7 +88,7 @@ Var INSTSHORTCUT | |||
88 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 88 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
89 | Function PostInstallExe | 89 | Function PostInstallExe |
90 | push $0 | 90 | push $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' |
94 | pop $0 | 94 | pop $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 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
272 | Function CheckIfAlreadyCurrent | 272 | Function 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 | |||
621 | Call un.CloseSecondLife | 621 | Call 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) |
624 | DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" | 624 | DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" |
625 | DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" | 625 | DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" |
626 | DeleteRegKey HKEY_LOCAL_MACHINE "Software\Linden Research, Inc.\Installer Language" | 626 | DeleteRegKey HKEY_LOCAL_MACHINE "Software\meta-impy\Installer Language" |
627 | 627 | ||
628 | ; Clean up shortcuts | 628 | ; Clean up shortcuts |
629 | Delete "$SMPROGRAMS\$INSTSHORTCUT\*.*" | 629 | Delete "$SMPROGRAMS\$INSTSHORTCUT\*.*" |
@@ -863,7 +863,7 @@ FunctionEnd | |||
863 | Function .onInit | 863 | Function .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 |
886 | FunctionEnd | 886 | FunctionEnd |
887 | 887 | ||
888 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 888 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
889 | Function un.onInit | 889 | Function 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 | ||
895 | FunctionEnd | 895 | FunctionEnd |
@@ -992,11 +992,11 @@ CreateShortCut "$INSTDIR\$INSTSHORTCUT Museum Spanish.lnk" "$INSTDIR\$INSTEXE" " | |||
992 | 992 | ||
993 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 993 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
994 | ; Write registry | 994 | ; Write registry |
995 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "" "$INSTDIR" | 995 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "" "$INSTDIR" |
996 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Version" "${VERSION_LONG}" | 996 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Version" "${VERSION_LONG}" |
997 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Flags" "$INSTFLAGS" | 997 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Flags" "$INSTFLAGS" |
998 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Shortcut" "$INSTSHORTCUT" | 998 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Shortcut" "$INSTSHORTCUT" |
999 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Exe" "$INSTEXE" | 999 | WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\meta-impy\$INSTPROG" "Exe" "$INSTEXE" |
1000 | WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "DisplayName" "$INSTPROG (remove only)" | 1000 | WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "DisplayName" "$INSTPROG (remove only)" |
1001 | WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "UninstallString" '"$INSTDIR\uninst.exe" /P="$INSTPROG"' | 1001 | WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\$INSTPROG" "UninstallString" '"$INSTDIR\uninst.exe" /P="$INSTPROG"' |
1002 | 1002 | ||