Jump to content

Im abou to give up, can someone help me?


Recommended Posts

Posted

I just came across nLite yesterday and was able to integrate a few programs like ad aware, java, microsoft antispyware and a few other things into my windows installation. I've gotton to the point though were I would like to have nero, office and a few other programs installed with windows, and Im clueless on how to do it. I have followed the scetchy steps and just don't get it. I have used these 3 pages, the first is this one

http://unattended.msfn.org/intermediate/me...ch_commands.htm

first off this $oem$ folder does not exist, so I created it.

Next I did this...

For cmdlines.txt, it should be placed in the \$OEM$ folder, and does not need to be specified anywhere else to state its existence. Windows Setup automatically scans for a cmdlines.txt file. All batch files launched by cmdlines.txt should be put into the same folder.

ok during setup windows did not recognize these things, it just put them in a folder after windows was installed. I even wrote this cmdline with a little help from the site

ECHO.

ECHO Installing Office 2003

ECHO Please wait...

start /wait %systemdrive%\install\Applications\Office2003\setuppro.exe /QB

ECHO.

ECHO Installing Nero

ECHO Please wait...

start /wait %systemdrive%\install\Applications\Nero6.exe /SILENT /NOREBOOT /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /WRITE_SN

ECHO.

ECHO Restarting the PC in 1 minute...

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\Drivers

RD /S /Q %systemdrive%\install

EXIT

Of course there is a serial in place of the x's in the nero key, and the office version I have I don't have to enter in my cd key

Of course there is more, but I will leave that for now, what am I doing wrong?


Posted (edited)

ok, since no one is replying I have done some more searching, and I "think" my problem is I just don't know how to save the batch file properly, what should it be saved as(cmd,inf, etc) and were do I save it to?

Edited by Darcwolf
Posted

The path to your batch file (.BAT or .CMD) should be specified in the cmdlines.txt file. The cmdlines.txt contents should look like this:

[COMMANDS]

"regedit /s blahblah.reg"

"install\setup.bat"

The cmdlines.txt must be placed in the $OEM$ folder and any paths should be relative to that folder too.

Hope this helps

Posted (edited)

Kind of, excuse me of my ignorance. So I have to have a batch file and a cmdlines.txt file? What exactly does the cmdlines file do, I thought the batch file pointed windows to all the programs to install. I wish there was a more clear cut explaination for programming idiots like me :no:

OK, learned more, so the cmdlines file goes in the $oem$ folder, which I create correct?

I think I got the batch file handled for now. I just don't understand how to make the cmdlines.txt file

[COMMANDS] -------------------------whats that??

"regedit /s blahblah.reg" -------------huh?

"install\setup.bat"----------------------ok, I get that, thats my batch file right?

Edited by Darcwolf
Posted (edited)

cmdlines.txt is executed automatically by the operating system during installation. But you can call your main batch file with it, and other initialization programs that you may need.

The Unattended Guide here is quite good, and everything will eventually make more sense once you start playing around with it. There is a lot to learn so give it some time and experiment first until you get the hang of it.

Yes, you need to create the $OEM$ folder.

The cmdlines.txt is just a text file that you create with notepad.

The first line is that Windows can recognise it for what it is.

The second line is an example of merging a registry file if you need to

the third line is your setup batch file. Make sure that the path is correct.

Edited by No6
Posted

Thank you, I think I have actually figured it out now, I'm gonna give it a try and if it doesn't work, well I will be back here. Thanks again.

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