Help - Search - Members - Calendar
Full Version: Battlefield 1942
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Oggi
hello,

i have batllefield 1942 and i would make a game package on a dvd with many games.

so by battlefield 1942 you have an installshield manager and 2 cds

first i try to copy the cd 1 on the harddisk in an folder and the second the also in the folder but the problem is, that the second cd have an setup.ini and also a data1.cab so that he wanted to overwrite the exiting file.

so have you any plans or a howto to make an unattend installation of battlefield 1942 ?

thanks.

mfg
Oggi
pup
whistling.gif

Most games don't install much, apart from the game files, and a couple of registry settings. I managed to make an automated installer by doing the following:

* Install BF 1942
[* Install Road to Rome]
[* Install Secret Weapons]
[* Install latest Desert Combat - this rules]
* Install all the latest patches

* Create a RAR of your C:\Games\Battlefield folder (or whatever you've called it]

* Create a vbscript to add all of the registry keys:

QUOTE
Option Explicit
'=========================================
' PATH
' game install path
'=========================================
Dim sPath
sPath = "C:\Games\Battlefield"

'=========================================
' KEYS
' product keys
'=========================================
Dim sKey_BF
Dim sKey_RTR
Dim sKey_SW
sKey_BF  = "##INSERT YOURS HERE##"
sKey_RTR = "##INSERT YOURS HERE##"
sKey_SW  = "##INSERT YOURS HERE##"

'=========================================
' MAKE REGISTRY CHANGES
'=========================================
Dim oWshShell
Set oWshShell = WScript.CreateObject("WScript.Shell")

oWshShell.RegWrite "HKLM\Software\Electronic Arts\EA GAMES\Battlefield 1942 The Road to Rome\ergc\", sKEY_BF, "REG_SZ"
oWshShell.RegWrite "HKLM\Software\Electronic Arts\EA GAMES\Battlefield 1942\ergc\", sKEY_RTR, "REG_SZ"
oWshShell.RegWrite "HKLM\Software\Electronic Arts\EA GAMES\Battlefield 1942 Secret Weapons of WWII\ergc\", sKEY_SW, "REG_SZ"

oWshShell.RegWrite  "HKLM\Software\EA GAMES\Battlefield 1942\1.00.001\", "", "REG_SZ"
oWshShell.RegWrite  "HKLM\Software\EA GAMES\Battlefield 1942: The Road To Rome\1.00.001\", "", "REG_SZ"
oWshShell.RegWrite  "HKLM\Software\EA GAMES\Battlefield 1942: Secret Weapons of WWII\1.00.001\", "", "REG_SZ"


oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942\LANGUAGE","English", "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942\LANGUAGEID","9", "REG_DWORD"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942\GAMEDIR",sPath, "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942\SRCDIR","D:\", "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942\SRCDISK","D:", "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942\INSTALLEDVERSION","1.05.001", "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942\REGSTR","00000809", "REG_SZ"

oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942 XPack1\GAMEDIR",sPath, "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942 XPack1\INSTALLEDVERSION","1.02.005", "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942 XPack1\SHELL_FOLDER","EA GAMES\\Battlefield 1942 The Road To Rome", "REG_SZ"

oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942 XPack2\GAMEDIR",sPath, "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942 XPack2\INSTALLEDVERSION","1.04.501", "REG_SZ"
oWshShell.RegWrite "HKLM\Software\EA GAMES\Battlefield 1942 XPack2\SHELL_FOLDER","EA GAMES\\Battlefield 1942 Secret Weapons of WWII", "REG_SZ"

'=========================================
' ADD DESKTOP ICON
'=========================================
Dim sDesktop
Dim oShellLink
sDesktop = oWshShell.SpecialFolders("Desktop")
set oShellLink = oWshShell.CreateShortcut(sDesktop & "\Battlefield 1942.lnk")
oShellLink.TargetPath = sPath & "\BF1942.exe"
oShellLink.IconLocation = sPath & "\BF1942.exe, 0"
oShellLink.Description = "Battlefield 1942"
oShellLink.Arguments = "+restart 1"
oShellLink.WorkingDirectory = sPath
oShellLink.Save

'=========================================
' ENJOY...
'=========================================


Done!

You'll then just need to write a script to extract the rar to whereever you want it and run the script. Simple and it'll save you so much time. and space - the RAR for all 3 games with DC comes to about 2 Gb.

You can do the same for most recent EA games including Medal of Honour, Call of Duty, Battlefield Vietnam, ...
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.