cmmcnamara Posted November 17, 2008 Posted November 17, 2008 Hi, I have been attempting to make a Windows XP SP3 32-bit disc that is fully up to date. So far I've been able to get everything working including some of the hard stuff like all of the .NET frameworks but I'm snagged on a few of them.These are the following updates I have been unable to integrate:KB892130 Windows Genuine Advantage Validation ToolKB890830 Mal Remove ToolKB956391 Security Update for ActiveX KillbitsKB905474 Windows Genuine Advantage NotificationKB940157 Windows Search 4.0KB957938 Microsoft SilverlightI know that most of these can be taken care of using RunOnceEx but I am trying to make this completely unattended. I appreciate any help in advance.
johnhc Posted November 17, 2008 Posted November 17, 2008 cmmcnamara,There is a known problem with KB956391, but I think the others should be OK. What do you mean by? These are the following updates I have been unable to integrate: If you are getting error messages, please post them. Also please attach (not paste) your LastSession.ini and make sure you are not nLiteing the same source more than once. Running out of GUI RunOnce can be silent (automatic) - use /Passive /NoRestart switches.Enjoy, John.
cmmcnamara Posted November 19, 2008 Author Posted November 19, 2008 (edited) Ahh ok let me give it one more try and see how it goes and I'll post the resulting session build afterwards. By integrate I mean to have them slipstreamed so that the windows install resulting from this CD is fully up to date. In respect to GUI RunOnce switches, could you please explain those to me in a little more detail, I have read articles on how to but I become incredibly confused. Thank you for you help. Edited November 19, 2008 by cmmcnamara
johnhc Posted November 19, 2008 Posted November 19, 2008 cmmcnamara,Out of the Gui RunOnce, you can run .exe files. The update is just an .exe file and if you use the switches I showed, it will be silent. Please see this for a rather complicated example of how to do this.Enjoy, John.
iamtheky Posted November 19, 2008 Posted November 19, 2008 This would install two seperate sets of hotfixes in a window named "hotfixing" during the runonce.SET REGKEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %REGKEY% /V TITLE /D "Hotfixing" /f -pretty title for the windowREG ADD %REGKEY%\001 /VE /D "Installing These 2 hotfixes" /f -pretty bold name with an arrow by it showing its being processedREG ADD %REGKEY%\001 /V 1 /D "%path%\KB######.exe /passive /norestart" /f -silent install of KB#1REG ADD %REGKEY%\001 /V 2 /D "%path%\KB######.exe /passive /norestart" /f -silent install of KB#2REG ADD %REGKEY%\002 /VE /D "Installing This hotfix" /fREG ADD %REGKEY%\002 /V 1 /D "%path%\KB######.exe /passive /norestart" /f -silent install of KB#3 in its own grouping
johnhc Posted November 19, 2008 Posted November 19, 2008 iamtheky,You need to tell cmmcnamara where to place the hot fixes and these Registry commands. Thanks, John.
iamtheky Posted November 19, 2008 Posted November 19, 2008 my bad, i thought the only issue was syntax.create runonce.cmd in your $oem$ and point your cmdlines.txt at it.I have$oem$ Folder root I have cmdlines.txt with two lines [Commands]".\Install\RunOnce.cmd"I then have an $oem$\install folder that contains the runonce.cmd.
cmmcnamara Posted November 20, 2008 Author Posted November 20, 2008 Ahh ok I think I understand how to do it, let me give it a try and see what I can do with it.
cmmcnamara Posted December 12, 2008 Author Posted December 12, 2008 So it's been a while but I finally got to trying RunOnce after finals but what I did isn't working so I was wondering if you could review my RunOnceEx.cmd to see if its ok:cmdow @ /HID@echo offSetLocal enableextensionsSET CDROM=%~d0SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Windows Setup" /fREG ADD %REGKEY%\001 /VE /D "Updating" /fREG ADD %REGKEY%\001 /V 1 /D "%CDROM%\UPDATES\WGAN.EXE /passive /norestart" /fREG ADD %REGKEY%\001 /V 2 /D "%CDROM%\UPDATES\MALTOOL.EXE /passive /norestart" /fREG ADD %REGKEY%\001 /V 3 /D "%CDROM%\UPDATES\SEARCH4 /passive /norestart" /fEndLocalEXITCan you see anything wrong with it?
iamtheky Posted December 12, 2008 Posted December 12, 2008 maybe this?FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.TXT SET CDROM=%%i:just use it instead of the set command.If you throw that if statement into the search bar you will see other threads very similar.
cmmcnamara Posted December 15, 2008 Author Posted December 15, 2008 Ok so I tried that as well but I cannot get it to work still. This is what I have in my OEM directory:cmdlines.txtRunOnceEx.cmdMy cmdlines.txt reads[Commands]"rundll32 advpack.dll,LaunchINFSection nLite.inf,U""RunOnceEx.cmd"My RunOnceEx.cmd reads:SetLocal enableextensionsFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.TXT SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Windows Setup" /fREG ADD %REGKEY%\001 /VE /D "Updating" /fREG ADD %REGKEY%\001 /V 1 /D "%CDROM%\UPDATES\kb892130wgav.exe /Q" /fREG ADD %REGKEY%\001 /V 2 /D "%CDROM%\UPDATES\kb905474wgan.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 3 /D "%CDROM%\UPDATES\kb940157search.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 4 /D "%CDROM%\UPDATES\KB957938silverlight.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 5 /D "%CDROM%\UPDATES\kb890830maltool.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 6 /D "%CDROM%\UPDATES\kb956391killbitsactivex.exe /passive /norestart" /fEndLocalEXITThe FOR command should have set the CD-ROM drive and then installed hotfixes from the Updates folder on the CD's root and all should have been displayed in a window with one entry labeled "Updating". What am I doing wrong??? Is it because the source is nLited? Have I messed up something with the CD variable? I do not understand while it isn't working properly.
iamtheky Posted December 16, 2008 Posted December 16, 2008 ".\runonceex.cmd"I believe it thinks you are trying to run that from sys32 if you dont give a full path.
cmmcnamara Posted December 16, 2008 Author Posted December 16, 2008 Ahh that does not work either. It seems that the keys are not even registering on closer inspection with regedit. I am stumped.
iamtheky Posted December 16, 2008 Posted December 16, 2008 SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Windows Setup" /fTry SET REGKEY=REG ADD %REGKEY%because from what I can tell you set a %KEY% path, then use %REGKEY% in the entries.
cmmcnamara Posted December 24, 2008 Author Posted December 24, 2008 I changed it toSET REGKEY=REG ADD %REGKEY%but unfortunately it didn't work either. I can't understand this. I do not even get RunOnce initiated. Is this maybe because my source is nLited?
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