diff options
Diffstat (limited to 'linden/indra/newview/installers/windows/installer_template.nsi')
-rw-r--r-- | linden/indra/newview/installers/windows/installer_template.nsi | 83 |
1 files changed, 58 insertions, 25 deletions
diff --git a/linden/indra/newview/installers/windows/installer_template.nsi b/linden/indra/newview/installers/windows/installer_template.nsi index c3573b5..32aefda 100644 --- a/linden/indra/newview/installers/windows/installer_template.nsi +++ b/linden/indra/newview/installers/windows/installer_template.nsi | |||
@@ -51,8 +51,8 @@ Name ${INSTNAME} | |||
51 | SubCaption 0 $(LicenseSubTitleSetup) ; override "license agreement" text | 51 | SubCaption 0 $(LicenseSubTitleSetup) ; override "license agreement" text |
52 | 52 | ||
53 | BrandingText " " ; bottom of window text | 53 | BrandingText " " ; bottom of window text |
54 | Icon %%SOURCE%%\res\install_icon.ico ; our custom icon | 54 | Icon %%SOURCE%%\installers\windows\install_icon.ico |
55 | UninstallIcon %%SOURCE%%\res\uninstall_icon.ico ; our custom icon | 55 | UninstallIcon %%SOURCE%%\installers\windows\uninstall_icon.ico |
56 | WindowIcon on ; show our icon in left corner | 56 | WindowIcon on ; show our icon in left corner |
57 | BGGradient off ; no big background window | 57 | BGGradient off ; no big background window |
58 | CRCCheck on ; make sure CRC is OK | 58 | CRCCheck on ; make sure CRC is OK |
@@ -69,7 +69,6 @@ DirText $(DirectoryChooseTitle) $(DirectoryChooseUpdate) | |||
69 | DirText $(DirectoryChooseTitle) $(DirectoryChooseSetup) | 69 | DirText $(DirectoryChooseTitle) $(DirectoryChooseSetup) |
70 | !endif | 70 | !endif |
71 | 71 | ||
72 | |||
73 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 72 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
74 | ;;; Variables | 73 | ;;; Variables |
75 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 74 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
@@ -310,14 +309,47 @@ Function CloseSecondLife | |||
310 | Return | 309 | Return |
311 | FunctionEnd | 310 | FunctionEnd |
312 | 311 | ||
313 | |||
314 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 312 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
315 | ; Delete files in Documents and Settings\<user>\SecondLife\cache | 313 | ; Test our connection to secondlife.com |
316 | ; Delete files in Documents and Settings\All Users\SecondLife\cache | 314 | ; Also allows us to count attempted installs by examining web logs. |
315 | ; *TODO: Return current SL version info and have installer check | ||
316 | ; if it is up to date. | ||
317 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
318 | ; Function CheckNetworkConnection | ||
319 | ; Push $0 | ||
320 | ; Push $1 | ||
321 | ; Push $2 # Option value for GetOptions | ||
322 | ; DetailPrint $(CheckNetworkConnectionDP) | ||
323 | ; ; Look for a tag value from the stub installer, used for statistics | ||
324 | ; ; to correlate installs. Default to "" if not found on command line. | ||
325 | ; StrCpy $2 "" | ||
326 | ; ${GetOptions} $COMMANDLINE "/STUBTAG=" $2 | ||
327 | ; GetTempFileName $0 | ||
328 | ; !define HTTP_TIMEOUT 5000 ; milliseconds | ||
329 | ; ; Don't show secondary progress bar, this will be quick. | ||
330 | ; NSISdl::download_quiet \ | ||
331 | ; /TIMEOUT=${HTTP_TIMEOUT} \ | ||
332 | ; "http://install.secondlife.com/check/?stubtag=$2&version=${VERSION_LONG}" \ | ||
333 | ; $0 | ||
334 | ; Pop $1 ; Return value, either "success", "cancel" or an error message | ||
335 | ; ; MessageBox MB_OK "Download result: $1" | ||
336 | ; ; Result ignored for now | ||
337 | ; ; StrCmp $1 "success" +2 | ||
338 | ; ; DetailPrint "Connection failed: $1" | ||
339 | ; Delete $0 ; temporary file | ||
340 | ; Pop $2 | ||
341 | ; Pop $1 | ||
342 | ; Pop $0 | ||
343 | ; Return | ||
344 | ; FunctionEnd | ||
345 | |||
346 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
347 | ; Delete files in Documents and Settings\<user>\Imprudence\cache | ||
348 | ; Delete files in Documents and Settings\All Users\Imprudence\cache | ||
317 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 349 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
318 | ;Function RemoveCacheFiles | 350 | ;Function RemoveCacheFiles |
319 | ; | 351 | ; |
320 | ;; Delete files in Documents and Settings\<user>\SecondLife | 352 | ;; Delete files in Documents and Settings\<user>\Imprudence |
321 | ;Push $0 | 353 | ;Push $0 |
322 | ;Push $1 | 354 | ;Push $1 |
323 | ;Push $2 | 355 | ;Push $2 |
@@ -336,7 +368,7 @@ FunctionEnd | |||
336 | ; ExpandEnvStrings $2 $2 | 368 | ; ExpandEnvStrings $2 $2 |
337 | ; | 369 | ; |
338 | ; ; When explicitly uninstalling, everything goes away | 370 | ; ; When explicitly uninstalling, everything goes away |
339 | ; RMDir /r "$2\Application Data\SecondLife\cache" | 371 | ; RMDir /r "$2\Application Data\Imprudence\cache" |
340 | ; | 372 | ; |
341 | ; CONTINUE: | 373 | ; CONTINUE: |
342 | ; IntOp $0 $0 + 1 | 374 | ; IntOp $0 $0 + 1 |
@@ -346,17 +378,17 @@ FunctionEnd | |||
346 | ;Pop $1 | 378 | ;Pop $1 |
347 | ;Pop $0 | 379 | ;Pop $0 |
348 | ; | 380 | ; |
349 | ;; Delete files in Documents and Settings\All Users\SecondLife | 381 | ;; Delete files in Documents and Settings\All Users\Imprudence |
350 | ;Push $0 | 382 | ;Push $0 |
351 | ; ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common AppData" | 383 | ; ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common AppData" |
352 | ; StrCmp $0 "" +2 | 384 | ; StrCmp $0 "" +2 |
353 | ; RMDir /r "$0\SecondLife\cache" | 385 | ; RMDir /r "$0\Imprudence\cache" |
354 | ;Pop $0 | 386 | ;Pop $0 |
355 | ; | 387 | ; |
356 | ;; Delete filse in C:\Windows\Application Data\SecondLife | 388 | ;; Delete filse in C:\Windows\Application Data\Imprudence |
357 | ;; If the user is running on a pre-NT system, Application Data lives here instead of | 389 | ;; If the user is running on a pre-NT system, Application Data lives here instead of |
358 | ;; in Documents and Settings. | 390 | ;; in Documents and Settings. |
359 | ;RMDir /r "$WINDIR\Application Data\SecondLife\cache" | 391 | ;RMDir /r "$WINDIR\Application Data\Imprudence\cache" |
360 | ; | 392 | ; |
361 | ;FunctionEnd | 393 | ;FunctionEnd |
362 | 394 | ||
@@ -406,12 +438,12 @@ FunctionEnd | |||
406 | 438 | ||
407 | 439 | ||
408 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 440 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
409 | ; Delete files in Documents and Settings\<user>\SecondLife | 441 | ; Delete files in Documents and Settings\<user>\Imprudence |
410 | ; Delete files in Documents and Settings\All Users\SecondLife | 442 | ; Delete files in Documents and Settings\All Users\Imprudence |
411 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 443 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
412 | Function un.DocumentsAndSettingsFolder | 444 | Function un.DocumentsAndSettingsFolder |
413 | 445 | ||
414 | ; Delete files in Documents and Settings\<user>\SecondLife | 446 | ; Delete files in Documents and Settings\<user>\Imprudence |
415 | Push $0 | 447 | Push $0 |
416 | Push $1 | 448 | Push $1 |
417 | Push $2 | 449 | Push $2 |
@@ -434,11 +466,13 @@ Push $2 | |||
434 | ; Otherwise (preview/dmz etc) just remove cache | 466 | ; Otherwise (preview/dmz etc) just remove cache |
435 | StrCmp $INSTFLAGS "" RM_ALL RM_CACHE | 467 | StrCmp $INSTFLAGS "" RM_ALL RM_CACHE |
436 | RM_ALL: | 468 | RM_ALL: |
437 | RMDir /r "$2\Application Data\SecondLife" | 469 | RMDir /r "$2\Application Data\Imprudence" |
438 | GoTo CONTINUE | ||
439 | RM_CACHE: | 470 | RM_CACHE: |
440 | RMDir /r "$2\Application Data\SecondLife\Cache" | 471 | # Local Settings directory is the cache, there is no "cache" subdir |
441 | Delete "$2\Application Data\SecondLife\user_settings\settings_windlight.xml" | 472 | RMDir /r "$2\Local Settings\Application Data\Imprudence" |
473 | # Vista version of the same | ||
474 | RMDir /r "$2\AppData\Local\Imprudence" | ||
475 | Delete "$2\Application Data\Imprudence\user_settings\settings_windlight.xml" | ||
442 | 476 | ||
443 | CONTINUE: | 477 | CONTINUE: |
444 | IntOp $0 $0 + 1 | 478 | IntOp $0 $0 + 1 |
@@ -449,17 +483,17 @@ Pop $2 | |||
449 | Pop $1 | 483 | Pop $1 |
450 | Pop $0 | 484 | Pop $0 |
451 | 485 | ||
452 | ; Delete files in Documents and Settings\All Users\SecondLife | 486 | ; Delete files in Documents and Settings\All Users\Imprudence |
453 | Push $0 | 487 | Push $0 |
454 | ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common AppData" | 488 | ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common AppData" |
455 | StrCmp $0 "" +2 | 489 | StrCmp $0 "" +2 |
456 | RMDir /r "$0\SecondLife" | 490 | RMDir /r "$0\Imprudence" |
457 | Pop $0 | 491 | Pop $0 |
458 | 492 | ||
459 | ; Delete filse in C:\Windows\Application Data\SecondLife | 493 | ; Delete filse in C:\Windows\Application Data\Imprudence |
460 | ; If the user is running on a pre-NT system, Application Data lives here instead of | 494 | ; If the user is running on a pre-NT system, Application Data lives here instead of |
461 | ; in Documents and Settings. | 495 | ; in Documents and Settings. |
462 | RMDir /r "$WINDIR\Application Data\SecondLife" | 496 | RMDir /r "$WINDIR\Application Data\Imprudence" |
463 | 497 | ||
464 | FunctionEnd | 498 | FunctionEnd |
465 | 499 | ||
@@ -502,7 +536,7 @@ Function un.RemovePassword | |||
502 | DetailPrint "Removing Second Life password" | 536 | DetailPrint "Removing Second Life password" |
503 | 537 | ||
504 | SetShellVarContext current | 538 | SetShellVarContext current |
505 | Delete "$APPDATA\SecondLife\user_settings\password.dat" | 539 | Delete "$APPDATA\Imprudence\user_settings\password.dat" |
506 | SetShellVarContext all | 540 | SetShellVarContext all |
507 | 541 | ||
508 | FunctionEnd | 542 | FunctionEnd |
@@ -860,7 +894,6 @@ Function un.onInit | |||
860 | 894 | ||
861 | FunctionEnd | 895 | FunctionEnd |
862 | 896 | ||
863 | |||
864 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 897 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
865 | ;;; Sections | 898 | ;;; Sections |
866 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 899 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |