Jump to content

Recommended Posts

Posted (edited)

Hey all. Basically I've been working for the past 3 weeks on a project. I'm putting together an XP installation that will include registry tweaks, include SP3, remove some "features" of XP, include a display driver, and automatically install a set of software.

I say it's an XP installation instead of an Unattended Setup CD because I will not be using a cd/dvd for distributing it and it will not be completely unattended. I will still need to set the Key and regional/network settings, etc, upon installing.

Basically, I've been using nLite and XP-ISO-Builder to integrate the service packs, drivers, tweaks, and SOME of the software I need. I'm at the point where the install runs off a build made by nLite, then the apps and some other tweaks are run through what was created with a build with XP-ISO-Builder. But after installing Windows, I must manually run the batch and .reg files for the apps and tweaks. I'd like to integrate that to be done automatically after the nLite installation has been completed.

I am of course willing to provide any information that would be necessary to help me to achieve this.

Let me start with a directory structure for my project:

Windows Setup CD (if you will)

$OEM$

I386

Autorun.inf

Last Session.ini

Last Session_u.ini

Readme.htm

Setup.exe

setupxp.htm

WIN51

WIN51IP

WIN51IP.SP2

WIN51IP.SP3

$OEM$ Folder

$1

$$

cmdlines.txt

regtweaks.reg

konten.cmd

runonceex.cmd

$1 Folder

Apps

Drivers

Here are my files:

cmdlines.txt

[COMMANDS]
"konten.cmd"
"REGEDIT /S regtweaks.reg"
"runonceex.cmd"

konten.cmd

net user "PJUser" "" /add
net localgroup Administrators "PJUser" /add
net accounts /maxpwage:unlimited
net localgroup User "PJUser" /delete
EXIT

runonceex.cmd

@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Softwareinstallation" /f
REG ADD %KEY%\0 /VE /D "Office2000" /f
REG ADD %KEY%\0 /V 1 /D "\"%systemdrive%\apps\Office2000\SETUP.EXE\" TRANSFORMS="Custom.MST" /qn+" /f
REG ADD %KEY%\0/V 2 /D "taskkill /F /IM outlook.exe" /f
REG ADD %KEY%\1 /VE /D "AdobeReader7" /f
REG ADD %KEY%\1 /V 1 /D "\"%systemdrive%\apps\AdobeReader7\AdbeRdr707_en_US.exe\" /Q /W /S /V"/QN"" /f
REG ADD %KEY%\1/V 2 /D "taskkill /F /IM 123.exe" /f

Any help or info you guys can provide would be greatly appreciated. Getting this all to happen automatically would be a huge step. Again, if there's more you need please let me know and I will provide.

Edited by Bobo88

Posted
Hey all. Basically I've been working for the past 3 weeks on a project here at work. I'm putting together an XP installation that will include registry tweaks, include SP3, remove some "features" of XP, include a display driver, and automatically install a set of software.

I say it's an XP installation instead of an Unattended Setup CD because I will not be using a cd/dvd for distributing it and it will not be completely unattended. I will still need to set the Key and regional/network settings, etc, upon installing.

Basically, I've been using nLite and XP-ISO-Builder to integrate the service packs, drivers, tweaks, and SOME of the software I need. I'm at the point where the install runs off a build made by nLite, then the apps and some other tweaks are

(bolding/underlining by me)

Hmmm, just for the record:

http://www.msfn.org/board/usb-drivers-prob...te-t112812.html

http://www.msfn.org/board/Petition-to-Nuhi-t119463.html

jaclaz

Posted (edited)

Now that we have semantics out of the way, do you have any useful information or suggestions?

At this point, all I need is a way to automatically tell those files to run after Windows Setup finishes. This does not involve nLite or any other program. What I am asking is for information on part of the process Microsoft has decided to allow for this type of setup to take place. I am only missing a piece of the puzzle.

I mean no disrespect with my comment above. It does seem, however, ridiculous that I ask a question on how the process that this forum is dedicated to works, and the response I get is completely unrelated to what I am asking. I would understand if I was having a problem with nLite and asked for help with nLite, and it was then pointed out that I am using it at work which is not allowed by the author of nLite. So therefore you would be right in denying assistance with nLite. Of course, this is all your choice to do as you please, I can only request assistance.

Again, no disrespect to you or anybody here, but does anybody have any suggestions on what I am actually asking about? Thank you.

Edited by Bobo88
Posted
I am only missing a piece of the puzzle.

It maybe possible that RunOnceEx.cmd is adding the entries but the commands added are failing later when the RunOnceEx entries are executed. The regtweaks file looks like it is in the correct folder and looks OK in cmdlines.txt.

You will need to ensure that the contents of the $OEM$ are copied over to %SYSTEMDRIVE% by using the below setting in Winnt.sif as mentioned here in the guide. Your RunOnceEx.cmd relies on this setting to exist and set to Yes.

OemPreinstall=Yes

It also seems like your RunOnceEx.cmd is missing a couple of escapes with quotes which may cause the entries to fail if whitespace exists. It may not be an issue as your previous entries are added to registry but without the quotes that you did not escape. Changes done below.

@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Softwareinstallation" /f
REG ADD %KEY%\0 /VE /D "Office2000" /f
REG ADD %KEY%\0 /V 1 /D "\"%systemdrive%\apps\Office2000\SETUP.EXE\" TRANSFORMS=\"Custom.MST\" /qn+" /f
REG ADD %KEY%\0 /V 2 /D "taskkill /F /IM outlook.exe" /f
REG ADD %KEY%\1 /VE /D "AdobeReader7" /f
REG ADD %KEY%\1 /V 1 /D "\"%systemdrive%\apps\AdobeReader7\AdbeRdr707_en_US.exe\" /Q /W /S /V\"/QN\"" /f
REG ADD %KEY%\1 /V 2 /D "taskkill /F /IM 123.exe" /f

Posted

Thanks for the response and information.

One thing I am confused about still is the use of quotes. For instance, my winnt.sif file says oempreinstall="yes" whereas the guide you linked to says oempreinstall=yes but other commands are listed as using quotes. Are they required or optional or different for each command? 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...