;Patch14 Script [set] '%%PACKAGE_NAME%%' 'STRING_1' [set] '%%APPLICATION_NAME%%' 'STRING_2' ; Read some relevent registry values into these tokens (to be used below) [readreg] '%%GAME_PATH%%' 'Software\Maxis\The Sims' 'SIMS_DATA' [readreg] '%%LANGUAGE%%' 'Software\Maxis\The Sims' 'SIMS_LANGUAGE' [readreg] '%%SKU%%' 'Software\Maxis\The Sims' 'SIMS_SKU' [readreg] '%%GAME_EDITION%%' 'Software\Maxis\The Sims' 'SIMS_GAME_EDITION' [testreg] '%%EP3_PATCH%%' 'Software\Maxis\The Sims' 'EP3Patch' [10readreg] '%%VERSION%%' 'Software\Maxis\The Sims' 'Version' ; setlanguage must be done before any set commands that refer to the Strings.iff ; English is the default if this command is left out [setlanguage] '%%LANGUAGE%%' ; Reset these tokens based on the newly set language [set] '%%PACKAGE_NAME%%' 'STRING_1' [set] '%%APPLICATION_NAME%%' 'STRING_2' [genericversionquitifequal] '%%EP3_PATCH%%' '2' ;; Check to ensure this is EXE 0 (SKU 1) [languageversionquitifnotequal] '%%SKU%%' '1' ;; Verify the patch's necessity [verifypatchneeded] '%%GAME_EDITION%%' '4' ;; This ends the preprocessing and starts making changes ;; This is where the application brings up the first dialog box. [begin] ;; Check that the game is not running [writetest] '%%GAME_PATH%%\Sims.exe' [del] '%%GAME_PATH%%\GameData\Objects\phones.iff' [del] '%%GAME_PATH%%\GameData\Objects\phones.spf' [del] '%%GAME_PATH%%\GameData\Objects\CarPortal.iff' [del] '%%GAME_PATH%%\ExpansionPack2\flies.iff' ;; Execute the patch [exec] 'patcha.exe "%%GAME_PATH%%" sku1.rtp' [del] '%%GAME_PATH%%\Sims.exe' [exec] 'patcha.exe "%%GAME_PATH%%" sku1x.rtp' ;; Mark patch [writereg] 'Software\Maxis\The Sims' 'EP3Patch' '2'