home *** CD-ROM | disk | FTP | other *** search
/ startrek.net - Powered by Earthlink / startrek.net-earthlink-2002-06-cd.iso / pc / Windows / STTheme / STTheme-PCT.cfg < prev    next >
Text File  |  2001-08-20  |  6KB  |  127 lines

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INIT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;;LABELS
  3. -{END} -L END
  4. -{SHOW} 0
  5. -{TEST}
  6. -{MAKE_DEFAULT} -L MAKE_DEFAULT 
  7. -{SKIP_MAKE_DEFAULT} -L SKIP_MAKE_DEFAULT
  8. -{BEGIN} -L BEGIN
  9.  
  10. ;;;INIT TOKENS
  11. -{reg_program_files_dir} HKEY_LOCAL_MACHINE|Software\Microsoft\Windows\CurrentVersion|ProgramFilesDir
  12. -{test_dest_dir_is_created} -m {SHOW}|Directory "{PATH2}" has been created successfully|test|1| |END
  13. -{reg_themes_exe} HKEY_LOCAL_MACHINE|Software\Microsoft\Windows\CurrentVersion\App Paths\THEMES.EXE|
  14.  
  15. ;;;PROGRAM TOKENS
  16. -%goto% -s
  17. -%copy% -a 1
  18. -%is_themes_support_installed_msg%  #: #f3 {reg_themes_exe} #if3 1|Setup detected that you do not have Desktop Themes Support installed on your computer. To try this out, please open Control Panel, Add/Remove Programs, Windows Setup, select Desktop Themes's, click "Details", select at list one component "Desktop Themes Support" and follow instructions.|msg_window_title|1| |END
  19. -%if_themes_support_not_installed_go_to%  #: {TEST} #f3 {reg_themes_exe} #if3 {SHOW}|Setup detected that you still do not have Desktop Themes Support installed on your computer.|test|1|
  20. -%src_dir% -f {RUN_DIR}\stnet1
  21. -%srs_dir_root% -f {RUN_DIR}
  22. -%dst_dir% {TEST} -f2 {reg_program_files_dir} -i2 PLUS!\Themes\stnet1
  23. -%destin_dir_root%  {TEST} -f2 {reg_program_files_dir} -i2 PLUS!\Themes
  24. -%get_os_version_info% -vos
  25. -%if_dest_dir_is_not_created_go_to% -ip2 {SHOW}|Directory "{PATH2}" was not created successfully|test|0|
  26. -%main_theme_file% Star Trek Net 1 (hicolor).Theme
  27. -%open_desktop_themes_dialog%  -a 32 destin_dir_root\main_theme_file
  28. ;-%apply_star_trek_skin_automatically% -> -wnd Desktop Themes -w 2 -a 63 -a 64 -w 2 -btnid 1 -a 62 
  29. -%msg_window_title%  Setup - StarTrek Desktop Theme
  30.  
  31. -%if_platform_id_is_not_NT_go_to% -cn 2|{PLATFORMID} -in= {SHOW}|Platform ID is {PLATFORMID}|test|1|
  32. -%if_major_version_is_not_5_go_to% -cn 5|{MAJORVERSION} -in= {SHOW}|MajorVersion is {MAJORVERSION}|test|1|
  33. -%if_minor_version_not_identical_to_W2000_go_to% -cn 0|{MINORVERSION} -in= {SHOW}|MajnorVersion is {MINORVERSION}|test|1|
  34.  
  35. -{reg_runonce} HKEY_LOCAL_MACHINE|SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
  36. -%create_key_to_set_runonce% -a 20 -r {reg_runonce}
  37. -%set_runonce_to_start_script_again_if_reboot% #: #a 21 #r {reg_runonce}|PCT_STTheme|"{RUN_DIR}\pct.exe" -a 10 -f "{RUN_DIR}\STTheme-PCT.cfg"
  38. -%delete_runonce_setting% -a 23 -r {reg_runonce}|PCT_STTheme
  39.  
  40. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;PROGRAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  41. ;;;;;;;;;;;;;;;For uninstall:
  42. ;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\StarTrek Desktop Theme]
  43. ;"DisplayName"="StarTrek Desktop Theme"
  44. ;"UninstallString"="{WIN_DIR}\\StarTrek\\PCT.EXE -a 10 -f {WIN_DIR}\\StarTrek\\STTheme-PCT.log"
  45.  
  46. ;-a 102 -f2 {WIN_DIR}\StarTrek
  47. ;-a 1 -f {RUN_DIR}\PCT.EXE -f2 {WIN_DIR}\StarTrek\pct.exe
  48.  
  49. ;#: #f {WIN_DIR}\StarTrek\STTheme-PCT.log #a 70
  50.  
  51. ;#: #a 75 #txt %: %m 1|Are you sure you want to uninstall StarTrek Desktop Theme?|Uninstall - StarTrek Desktop Theme|33|  |END 
  52. ;#: #a 75 #txt -a 0 -r HKEY_CURRENT_USER|Software\Microsoft\Plus!\Themes\Current 
  53. ;#: #x #a 75 #txt %: %cs {SVALUE}|startr   %is 0|StarTrek Desktop Theme is not currently in use|test|0|UNINSTALL 
  54. ;#: #a 75 #txt %: %m 1|The StarTrek Desktop Theme is currently in use. Please make another desktop theme to be your current default and try to remove the StarTrek Desktop Theme from your computer again.|Uninstall - StarTrek Desktop Theme|64|END 
  55. ;#: #a 75 #txt -a 0 -L UNINSTALL 
  56. ;#: #a 75 #txt %: %a 120 %wnd Uninstall - StarTrek Desktop Theme %txt Please wait...
  57. ;#: #a 75 #txt -a 24 -r HKEY_LOCAL_MACHINE|Software\Microsoft\Windows\CurrentVersion\Uninstall\StarTrek Desktop Theme 
  58. ;;;;;;;;;;;;;;;;;For uninstall
  59. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  60. create_key_to_set_runonce
  61. set_runonce_to_start_script_again_if_reboot
  62. -w 3
  63. get_os_version_info
  64. ;if_platform_id_is_not_NT_go_to  BEGIN
  65. ;if_major_version_is_not_5_go_to BEGIN
  66. ;if_minor_version_not_identical_to_W2000_go_to BEGIN
  67. ;#: #m 1|You may not run correctly StarTrek Desktop Theme installation on you computer (your OS is Windows 2000 - {VERSIONOS}). Do you want to continue?|msg_window_title|33|  |END
  68.  
  69. {BEGIN}
  70. ;is_themes_support_installed_msg
  71. ;-f c:\windows\desktop\un.log -a 70
  72. copy src_dir\criticalstop.wav      dst_dir\criticalstop.wav  -mkdir
  73. if_dest_dir_is_not_created_go_to  END
  74. copy src_dir\empty.wav          dst_dir\empty.wav  
  75. copy src_dir\maximize.wav          dst_dir\maximize.wav  
  76. copy src_dir\menucommand.wav      dst_dir\menucommand.wav  
  77. copy src_dir\minimize.wav          dst_dir\minimize.wav  
  78. copy src_dir\newmail.wav          dst_dir\newmail.wav  
  79. copy src_dir\programerror.wav     dst_dir\programerror.wav  
  80. copy src_dir\question.wav          dst_dir\question.wav  
  81. copy src_dir\restoredown.wav      dst_dir\restoredown.wav  
  82. copy src_dir\restoreup.wav          dst_dir\restoreup.wav  
  83. copy src_dir\shutdown.wav          dst_dir\shutdown.wav  
  84. copy src_dir\startup.wav          dst_dir\startup.wav  
  85. copy src_dir\stn1chips.ico          dst_dir\stn1chips.ico  
  86. copy src_dir\stn1emptybin.ico     dst_dir\stn1emptybin.ico  
  87. copy src_dir\stn1fullbin.ico      dst_dir\stn1fullbin.ico  
  88. copy src_dir\stn1left.bmp          dst_dir\stn1left.bmp  
  89. copy src_dir\stn1line.gif          dst_dir\stn1line.gif  
  90. copy src_dir\stn1mypadd.ico          dst_dir\stn1mypadd.ico  
  91. copy src_dir\stn1network.ico      dst_dir\stn1network.ico  
  92. copy src_dir\stn1warp.jpg          dst_dir\stn1warp.jpg  
  93. copy src_dir\systemasterisk.wav      dst_dir\systemasterisk.wav  
  94. copy src_dir\systemexclamation.wav  dst_dir\systemexclamation.wav  
  95. copy srs_dir_root\main_theme_file      destin_dir_root\main_theme_file 
  96. ;-a 110
  97. if_platform_id_is_not_NT_go_to               MAKE_DEFAULT
  98. if_major_version_is_not_5_go_to              MAKE_DEFAULT
  99. if_minor_version_not_identical_to_W2000_go_to     MAKE_DEFAULT
  100.  
  101. goto SKIP_MAKE_DEFAULT
  102.  
  103. {MAKE_DEFAULT}
  104. -w 3
  105. if_themes_support_not_installed_go_to SKIP_MAKE_DEFAULT
  106. open_desktop_themes_dialog 
  107. ;apply_star_trek_skin_automatically
  108.  
  109. -n 30 -wnd Desktop Themes
  110. -L LOOP 
  111. -ie 0|time is not elapsed yet|test|0|@
  112. -s  SKIP_MAKE_DEFAULT
  113. -w 0.5
  114. -iw 0|window not found|test|0|CONTINUE_LOOP
  115. -w 1
  116. -a 63 
  117. -a 64
  118. -w 3
  119. -btnid 1 -a 62
  120. -s SKIP_MAKE_DEFAULT
  121. -L CONTINUE_LOOP
  122. -su LOOP
  123.  
  124. {SKIP_MAKE_DEFAULT}
  125. delete_runonce_setting
  126. {END}
  127.