home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar Special 2002 April
/
GSSH42002.iso
/
PATCHES
/
diesimshotdate
/
HDPatch_Europe.exe
/
script.txt
< prev
next >
Wrap
Text File
|
2002-03-05
|
2KB
|
49 lines
;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%%' '2' '3' '4' '10'
[languageversionquitifnotequal] '%%LANGUAGE%%' 'UKEnglish' 'USEnglish' 'French' 'German' 'Dutch' 'Swedish' 'Italian' 'Spanish' 'Portuguese' 'Polish'
;; 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%%" sku2.rtp'
;; Mark patch
[writereg] 'Software\Maxis\The Sims' 'EP3Patch' '2'