home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 March / GSSH0304CD4.iso / Patches / Sims / sims_deluxe_patch.exe / script.txt < prev    next >
Text File  |  2002-11-19  |  2KB  |  52 lines

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