MSFN Forum: Battlefield 1942 - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Battlefield 1942 how can i make an unattend installation Rate Topic: -----

#1 User is offline   Oggi 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 22-February 04

Posted 23 February 2004 - 02:48 PM

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


#2 User is offline   pup 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 30-March 04

Posted 30 March 2004 - 02:51 PM

:)

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, ...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy