erik_demon Posted October 31, 2004 Share Posted October 31, 2004 I have 3 games that I want to install silently.These games are:- Battlefield Vietnam- Command and Conquer Generals- Command and Conquer Generals Zero HourAll 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 fileThis 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.exeIf 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) Link to comment Share on other sites More sharing options...
Jito463 Posted November 1, 2004 Share Posted November 1, 2004 You could try making a 0-byte file with the same name, and using a reg entry to enter the serial number. Worth a shot anyway. Link to comment Share on other sites More sharing options...
MHz Posted November 1, 2004 Share Posted November 1, 2004 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 More sharing options...
erik_demon Posted November 1, 2004 Author Share Posted November 1, 2004 Thanks for your Reaction guys .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. Than I gave Autoit a try. For a beginner (such as myself ) 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 thisECHO OFFECHO Installeren Battlefield Vietnamstart %systemdrive%\battlefield\setup.exe /SSleep 7start %systemdrive%\battlefield\battlefield.exeSleep 180taskkill /IM "Battlefield Vietnam_eReg.exe" /Fstart /wait %systemdrive%\battlefield\PunkBuster2\setup.exe /Sstart /wait %systemdrive%\battlefield\"battlefield Vietnam 1_2"\Disk1\setup.exe /SIn 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. Link to comment Share on other sites More sharing options...
MCT Posted November 1, 2004 Share Posted November 1, 2004 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 lineSend(x, x, x, x, x, {ENTER})that should work Link to comment Share on other sites More sharing options...
erik_demon Posted November 1, 2004 Author Share Posted November 1, 2004 Thanks for the tip Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now