home *** CD-ROM | disk | FTP | other *** search
/ Freelog 42 / Freelog042.iso / Add-On / SimS / Patch / HDPatch.exe / script.txt < prev    next >
Text File  |  2002-02-04  |  2KB  |  50 lines

  1.  
  2. ;Patch14 Script
  3. [set]    '%%PACKAGE_NAME%%' 'STRING_1'
  4. [set]    '%%APPLICATION_NAME%%' 'STRING_2'
  5.  
  6. ; Read some relevent registry values into these tokens (to be used below)
  7. [readreg] '%%GAME_PATH%%' 'Software\Maxis\The Sims' 'SIMS_DATA'
  8. [readreg] '%%LANGUAGE%%'  'Software\Maxis\The Sims' 'SIMS_LANGUAGE'
  9. [readreg] '%%SKU%%'        'Software\Maxis\The Sims' 'SIMS_SKU'
  10. [readreg] '%%GAME_EDITION%%'        'Software\Maxis\The Sims' 'SIMS_GAME_EDITION'
  11. [testreg] '%%EP3_PATCH%%'    'Software\Maxis\The Sims' 'EP3Patch'
  12. [10readreg] '%%VERSION%%'   'Software\Maxis\The Sims' 'Version'
  13.  
  14. ; setlanguage must be done before any set commands that refer to the Strings.iff
  15. ; English is the default if this command is left out
  16. [setlanguage]    '%%LANGUAGE%%'
  17.  
  18. ; Reset these tokens based on the newly set language
  19. [set]    '%%PACKAGE_NAME%%'     'STRING_1'
  20. [set]    '%%APPLICATION_NAME%%' 'STRING_2'
  21.  
  22. [genericversionquitifequal] '%%EP3_PATCH%%' '2'
  23.  
  24. ;; Check to ensure this is EXE 0 (SKU 1)
  25. [languageversionquitifnotequal] '%%SKU%%'    '1'
  26.  
  27. ;; Verify the patch's necessity
  28. [verifypatchneeded] '%%GAME_EDITION%%' '4'
  29.  
  30. ;; This ends the preprocessing and starts making changes
  31. ;; This is where the application brings up the first dialog box.
  32. [begin]
  33.  
  34. ;; Check that the game is not running
  35. [writetest] '%%GAME_PATH%%\Sims.exe'
  36.  
  37. [del]    '%%GAME_PATH%%\GameData\Objects\phones.iff'
  38. [del]    '%%GAME_PATH%%\GameData\Objects\phones.spf'
  39. [del]    '%%GAME_PATH%%\GameData\Objects\CarPortal.iff'
  40. [del]    '%%GAME_PATH%%\ExpansionPack2\flies.iff'
  41.  
  42. ;; Execute the patch
  43. [exec]     'patcha.exe "%%GAME_PATH%%" sku1.rtp'
  44. [del]    '%%GAME_PATH%%\Sims.exe'
  45. [exec]     'patcha.exe "%%GAME_PATH%%" sku1x.rtp'
  46.  
  47. ;; Mark patch
  48. [writereg]       'Software\Maxis\The Sims' 'EP3Patch' '2'
  49.  
  50.