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

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INIT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;;LABELS
  3. -{ASKINSTALL} -L ASKINSTALL
  4. -{CONTINUE_LOOP} -L CONTINUE_LOOP
  5. -{COPY_TO_THE_EXISTING_PLACE} -L COPY_TO_THE_EXISTING_PLACE
  6. -{COPYSKIN_WHEN_PLAYER_INSTALLED} -L COPYSKIN_WHEN_PLAYER_INSTALLED
  7. -{COPYSKIN} -L COPYSKIN
  8. -{END} -L END
  9. -{LOOP} -L LOOP 
  10. -{MAKE_DIRECTORY_AND_COPY} -L MAKE_DIRECTORY_AND_COPY 
  11.  
  12. ;;;INIT TOKENS
  13. -{SHOW_TEST_MESSAGE} 0
  14. -{copy} -a 1
  15. -{current_skin_root} HKEY_CURRENT_USER|Software\Microsoft\MediaPlayer\Player\Skins
  16. -{current_user_player_root} HKEY_CURRENT_USER|Software\Microsoft\MediaPlayer\Player
  17. ;-{e5_source_directory} -f1 HKEY_LOCAL_MACHINE|SOFTWARE\EarthLink Network\5.0|SourceDir 
  18. -{mkdir_copy} -a 1 -mkdir
  19. -{mplayer_exe} -f1 HKEY_LOCAL_MACHINE|SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wmplayer.exe
  20. -{mplayer_version} -v 7.0.0.0
  21. -{mplyer_root_dir} HKEY_LOCAL_MACHINE|SOFTWARE\Microsoft\MediaPlayer
  22. -{reg_runonce} HKEY_LOCAL_MACHINE|SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
  23. -{skins_dir} {mplyer_root_dir}|SkinsDir
  24. -{star_trek_skin_destination} -f2 {skins_dir} -i2 {star_trek_skin_file_name}
  25. -{star_trek_skin_file_name} Star Trek.net.wmz
  26. -{star_trek_skin_source} -f1 {RUN_DIR} -i {star_trek_skin_file_name}
  27. -{test_current_skin_dir_exist}  -m {SHOW_TEST_MESSAGE}|Current skin directory has been detected in the registry: value "{SVALUE}" detected).|test|1|  |END
  28. -{test_mediaplayer_install_dir_exist} -m {SHOW_TEST_MESSAGE}|Media Player's installation directory "{FILE3}" exist.|test|1|  |END
  29. -{test_star_trek_file_exists} -m {SHOW_TEST_MESSAGE}|Star Trek skin file exists in the skins directory after being copied.|test|1|  |END
  30. -{test_version_ok} -m {SHOW_TEST_MESSAGE}|Current Media Player is new or of the same version.|test|1|  |END
  31.  
  32. ;;;PROGRAM TOKENS
  33. -%activate_reg_current_skin% -a 22 -r {current_skin_root}|LastViewMode|1
  34. -%ask_user%  #: #m 1|You do not have the latest version of the Windows Media Player installed on your computer.\nDo you want to upgrade your system to Windows Media Player 7.1?|Setup - Windows Media Player Upgrade|33|  |END
  35. -%continue_loop% -su LOOP
  36. -%copy_star_trek_skin_to_the_right_place% {copy} {star_trek_skin_source} {star_trek_skin_destination}
  37. -%copy_star_trek_skin_to_the_right_place_creating_skins_directory_if_need_be% {mkdir_copy} {star_trek_skin_source} {star_trek_skin_destination}
  38. -%create_key_to_set_current_skin% -a 20 -r {current_user_player_root}\Skins
  39. -%create_key_to_set_runonce% -a 20 -r {reg_runonce}
  40. -%delete_runonce_setting% -a 23 -r {reg_runonce}|PCT_WMPlay
  41. ;-%end_reg_comp_dialog% -a 34
  42. -%goto% -s 
  43. -%if_any_version_that_support_skins_is_not_installed_go_to%  -r HKEY_LOCAL_MACHINE|SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wmplayer.exe -ir {SHOW_TEST_MESSAGE}|Proper version of theWindows Media Player is not installed on your computer.|PCT|1|
  44. -%if_current_skin_registry_setting_does_not_exist_go_to%   -r {current_skin_root}|CurrentSkin|{FILE2} -ir {SHOW_TEST_MESSAGE}|There is no registry setting for the current skins.|test|0|
  45. -%if_install_process_is_not_detected_go_to% -f {RUN_DIR} -i mp71.exe -ipr {SHOW_TEST_MESSAGE}|mp71.exe proces has not been detected|test|1|
  46. -%if_media_player_has_still_not_been_installed_go_to% if_mplayer_version_is_old_go_to
  47. -%if_mediaplayer_install_dir_does_not_exist_go_to% -f3 {mplyer_root_dir}|Installation Directory -ip3 {SHOW_TEST_MESSAGE}|Skins directory doesn't exist.|test|1|
  48. -%if_mplayer_version_is_old_go_to% {mplayer_exe} {mplayer_version} -iv {SHOW_TEST_MESSAGE}|Media Player version is old or main file does not exist!|test|0|
  49. -%if_star_trek_file_was_not_copied_successfully_go_to% {star_trek_skin_destination} -if2 {SHOW_TEST_MESSAGE}|Star Trek skin file doesn't exist in the skins directory.|test|273|
  50. -%install_media_player%  #: #a 31 #f {RUN_DIR} #i mp71.exe #p /Q:A /R:N
  51. ;-%install_media_player%  #:  #a 31  #f {RUN_DIR} #i mp71.exe
  52. -%set_e5_forgroundwindow% #: #a 60 #wnd Setup - Windows Media Player
  53. -%set_reg_current_skin% -a 21 -r {current_user_player_root}\Skins|CurrentSkin|{FILE2}
  54. -%set_runonce_to_start_script_again_to_copy_star_trek_skin_and_set_it_default_if_reboot% #: #a 21 #r {reg_runonce}|PCT_WMPlay|"{RUN_DIR}\pct.exe" -a 10 -f "{RUN_DIR}\WMPlayer-PCT.cfg" -s COPYSKIN  
  55. -%set_timeout% -n
  56. ;-%start_reg_comp_dialog%  #: #a 33 #wnd Setup - Windows Media Player Upgrade 
  57. -%wait_1_seconds% -w 1
  58. -%wait_2_seconds% -w 2
  59. ;;;;;;;;;
  60. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;PROGRAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  61. if_any_version_that_support_skins_is_not_installed_go_to  ASKINSTALL
  62. if_mplayer_version_is_old_go_to ASKINSTALL
  63.     {test_version_ok}
  64.  
  65. {COPYSKIN}
  66. if_media_player_has_still_not_been_installed_go_to DELETE_RUNONCE
  67.  
  68. if_mediaplayer_install_dir_does_not_exist_go_to  DELETE_RUNONCE
  69.     {test_mediaplayer_install_dir_exist}
  70.  
  71. if_current_skin_registry_setting_does_not_exist_go_to MAKE_DIRECTORY_AND_COPY
  72.     {test_current_skin_dir_exist}
  73. goto COPY_TO_THE_EXISTING_PLACE
  74.  
  75. {MAKE_DIRECTORY_AND_COPY}
  76. copy_star_trek_skin_to_the_right_place_creating_skins_directory_if_need_be 
  77.  
  78. {COPY_TO_THE_EXISTING_PLACE}
  79. copy_star_trek_skin_to_the_right_place
  80.  
  81. delete_runonce_setting
  82. wait_2_seconds
  83.  
  84. if_star_trek_file_was_not_copied_successfully_go_to DELETE_RUNONCE
  85.     {test_star_trek_file_exists}
  86.  
  87. create_key_to_set_current_skin
  88. set_reg_current_skin
  89. activate_reg_current_skin 
  90. goto END
  91.  
  92. {ASKINSTALL} 
  93. ask_user
  94.  
  95. create_key_to_set_runonce
  96. set_runonce_to_start_script_again_to_copy_star_trek_skin_and_set_it_default_if_reboot
  97.  
  98. ;start_reg_comp_dialog
  99. install_media_player
  100. set_e5_forgroundwindow
  101.  
  102. -w 3
  103. ;if_install_process_is_not_detected_go_to  DELETE_RUNONCE
  104.  
  105. set_timeout 300
  106. {LOOP}
  107. wait_1_seconds
  108. if_install_process_is_not_detected_go_to COPYSKIN_WHEN_PLAYER_INSTALLED 
  109. -ie 0|time is not elapsed yet|test|1|CONTINUE_LOOP|END
  110. goto DELETE_RUNONCE
  111. {CONTINUE_LOOP} 
  112. continue_loop
  113.  
  114. {COPYSKIN_WHEN_PLAYER_INSTALLED}
  115. ;end_reg_comp_dialog 
  116. -su COPYSKIN
  117.  
  118. -L DELETE_RUNONCE
  119. #: #m 1|Installation of Windows Media Player failed.|Setup - Windows Media Player Upgrade|16
  120. delete_runonce_setting
  121. {END}
  122.