Jump to content

Importing serial in EA Games


Recommended Posts

I have 3 games that I want to install silently.

These games are:

- Battlefield Vietnam

- Command and Conquer Generals

- Command and Conquer Generals Zero Hour

All these games are made by Electronic Arts (EA) and use install-shield to install.

Let's take Battlefield Vietnam as an example.

- I copy the content of the CD to my harddrive

- I created an ISS file

This way the installation works fine.

The only problem that I have, is that the Setup asks me for my serial code.

This is done by a program called Battlefield Vietnam_code.exe

If you enter your serial, it will perfectly install silent.

If you Taskkil this program your installation will stop.

If you delete this file and then run the installation, it will give you an error.

I also tried to insert my serial code by using a Reg file, but it still asks for my serial key.

Is there anyway to work around this program, or can i somehow implant my serial key?

(Bellow you will find an image of my problem)

post-70-1099241740_thumb.jpg

Link to comment
Share on other sites


If this window pops up during the silent install. You could use Autoit to run the execution, then have it wait for this window title to appear. Then use Autoit to controlsend the serial to the input fields. That's if you like learning Autoit alittle, for a mere several lines of code to do this.

Link to comment
Share on other sites

Thanks for your Reaction guys :thumbup .

First I tried the 0-byte file but it doesn't work. The problem is, that the file Opens another file (not visible) that is crucial for the installation. So I got all sorts of errors. :no:

Than I gave Autoit a try. For a beginner (such as myself :D ) this application looks very diffecult. So I started messing around with the example files, and started to read the help file.

With this I created a very basic script.

WinActivate ( "Battlefield Vietnam")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("{ENTER}")

All this basicly does Is implating my serial and press enter.

When I have some more time, I will make a complete script for the whole installation.

Now I created a batch that looks like this

ECHO OFF
ECHO Installeren Battlefield Vietnam
start %systemdrive%\battlefield\setup.exe /S
Sleep 7
start %systemdrive%\battlefield\battlefield.exe
Sleep 180
taskkill /IM "Battlefield Vietnam_eReg.exe" /F
start /wait %systemdrive%\battlefield\PunkBuster2\setup.exe /S
start /wait %systemdrive%\battlefield\"battlefield Vietnam 1_2"\Disk1\setup.exe /S

In this batch "Battlefield.exe" is my Autoit script.

Thanks for the advise, I'll definitely learn some more about Autoit and I will use it in the future. :thumbup

Link to comment
Share on other sites

Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("x")
Send("{ENTER}")

u can make that all 1 line

Send(x, x, x, x, x, {ENTER})

that should work

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...