Kingskawn Posted February 21, 2007 Posted February 21, 2007 I searched on the forum and found this http://www.msfn.org/board/index.php?showtopic=28005 but it didn't gave me any satisfaction.So my question is simple. How do I execute a *.reg during or after the installation of a winxp (made with nLite)?Thanks and sorry is on the forum. I first searched before asking my question.
strotee76 Posted February 21, 2007 Posted February 21, 2007 Place "regedit /s (path to)xxxxx.reg" command in a batch file and point to the batch file from the [GUIRunOnce] section in WINNT.SIFThere might be more ways, but this is what I know.
Kingskawn Posted February 21, 2007 Author Posted February 21, 2007 My reg calls xp_allround.reg and is located on D:\cabs\xp_allround.reg soin my WINNT.SIF file on my image (ISO) file I have to look for that WINNT.SIF file and put under [GUIRunOnce] D:\cabs\run_reg.bat ?Is it that?
strotee76 Posted February 21, 2007 Posted February 21, 2007 No, it's a little more complicated than that. I guess I had a fair amount of assumption in my reply.1. Do you want this installation to be unattended? (no interaction on your part)2. If you answered No to 1, then you won't have a WINNT.SIF file. (FYI, it's placed in the i386 folder)3. If you do have a WINNT.SIF file, then you will also need to create an $OEM$ folder on your CD and place the CABS folder and batch file inside a $1 folder (D:\$OEM$\$1\CABS\(this is where the REG and BATCH file will exist). This folder (CABS) is copied to the root level of the hard drive during installation and then the batch file is ran immediately after you log in for the first time.Hopefully that didn't confuse you too much.If it did, this is a good link
Kingskawn Posted February 21, 2007 Author Posted February 21, 2007 Yes I want the installation to be unattended. Just put the cd in and let do the b***h all by herself :-)
Kingskawn Posted February 21, 2007 Author Posted February 21, 2007 Tried it already your link but coudn't do everything and ended up to a faulty install cd. After that I tried nLite because it's easier to do but as for the unattended installs it's not 100% yet :'(
strotee76 Posted February 21, 2007 Posted February 21, 2007 To be honest, I don't use nLite for my unattended part since my WINNT.SIF does everything I need it to already. So the only thing you're missing is being able to import registry settings into the install? If that's the case, then my method still stands. Learn more about creating $OEM$ folders and using the [GUIRunOnce] section in WINNT.SIF to run batch files. For example:batch file = batch.cmdreg file = settings.regCD directory: root level folders on CD - i386, $OEM$, other misc foldersin the $OEM$ folder, have a folder called - $1in the $1 folder, have a folder called - CABSin the CABS folder - place batch.cmd and settings.regin the WINNT.SIF file under [GUIRunOnce] - "%systemdrive%\CABS\batch.cmd" (leave the quotes)in the batch.cmd file - regedit /s %systemdrive%\CABS\settings.reg
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