Bobo88 Posted July 10, 2008 Posted July 10, 2008 (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$I386Autorun.infLast Session.iniLast Session_u.iniReadme.htmSetup.exesetupxp.htmWIN51WIN51IPWIN51IP.SP2WIN51IP.SP3$OEM$ Folder$1$$cmdlines.txtregtweaks.regkonten.cmdrunonceex.cmd$1 FolderAppsDriversHere are my files:cmdlines.txt[COMMANDS]"konten.cmd""REGEDIT /S regtweaks.reg""runonceex.cmd"konten.cmdnet user "PJUser" "" /addnet localgroup Administrators "PJUser" /addnet accounts /maxpwage:unlimitednet localgroup User "PJUser" /deleteEXITrunonceex.cmd@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Softwareinstallation" /fREG ADD %KEY%\0 /VE /D "Office2000" /fREG ADD %KEY%\0 /V 1 /D "\"%systemdrive%\apps\Office2000\SETUP.EXE\" TRANSFORMS="Custom.MST" /qn+" /fREG ADD %KEY%\0/V 2 /D "taskkill /F /IM outlook.exe" /fREG ADD %KEY%\1 /VE /D "AdobeReader7" /fREG ADD %KEY%\1 /V 1 /D "\"%systemdrive%\apps\AdobeReader7\AdbeRdr707_en_US.exe\" /Q /W /S /V"/QN"" /fREG ADD %KEY%\1/V 2 /D "taskkill /F /IM 123.exe" /fAny 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 July 10, 2008 by Bobo88
jaclaz Posted July 10, 2008 Posted July 10, 2008 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.htmlhttp://www.msfn.org/board/Petition-to-Nuhi-t119463.htmljaclaz
Bobo88 Posted July 10, 2008 Author Posted July 10, 2008 (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 July 10, 2008 by Bobo88
MHz Posted July 12, 2008 Posted July 12, 2008 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=YesIt 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 offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Softwareinstallation" /fREG ADD %KEY%\0 /VE /D "Office2000" /fREG ADD %KEY%\0 /V 1 /D "\"%systemdrive%\apps\Office2000\SETUP.EXE\" TRANSFORMS=\"Custom.MST\" /qn+" /fREG ADD %KEY%\0 /V 2 /D "taskkill /F /IM outlook.exe" /fREG ADD %KEY%\1 /VE /D "AdobeReader7" /fREG ADD %KEY%\1 /V 1 /D "\"%systemdrive%\apps\AdobeReader7\AdbeRdr707_en_US.exe\" /Q /W /S /V\"/QN\"" /fREG ADD %KEY%\1 /V 2 /D "taskkill /F /IM 123.exe" /f
Bobo88 Posted July 15, 2008 Author Posted July 15, 2008 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.
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