Alex123 Posted June 1, 2004 Share Posted June 1, 2004 Hi everybody and first of all, thanks to all these great people that dedicates their time to help others.I read before making questions in the forum, but this time I could not see any answer for the question I am about to ask.When trying to migrate the process from regular RunOnceEx to RunOnceEx from CD I am running into an issue. At the time when cmdlines.txt is supposed to be picked up, which I understand is at minute 12, it looks like it is not being picked up. That's my thinking, but could be something else. After rebooting RunOnceEx should be run but it doesn't happen. The OS gets installed but no programs are installed. However something that I tried was to manually execute RunOnceEx.cmd and rebooting, and that way all the programs were installed including the hotfixes that can't be installed through svcpack.inf.My understanding tells me that it should be run automatically after rebooting and login in the first time.I followed all the instructions from the guide on how to create an unattended installation with RunOnceEx from cd. Created a blank CD.txt file and placed it in the right place as indicated. I will include my RunOnceEx.cmd file for you people to review and help me figure out why it is not being picked up.Thanks in advance for any help given.RunOnceEx.cmdcmdow @ /HID@echo offIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Adobe Acrobat Reader 6" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\install\Apps\AdobeReader6\AR6.msi /QB" /fREG ADD %KEY%\005 /VE /D "SpyBot Search And Destroy 1.3" /fREG ADD %KEY%\005 /V 1 /D "%cdrom%\install\Apps\spyBSD\spyBSD13.exe /silent /nocancel /taskbarhide /autoclose" /fREG ADD %KEY%\010 /VE /D "Norton Antivirus 2003 Pro" /fREG ADD %KEY%\010 /V 1 /D "%cdrom%\install\Apps\NAV2003\NAV\NAV.msi /QB" /fREG ADD %KEY%\020 /VE /D "MSN Messenger 6.0.0602 Final" /fREG ADD %KEY%\020 /V 1 /D "%cdrom%\install\Apps\MSN\MsnMsgs.msi /QB" /f REG ADD %KEY%\025 /VE /D "Nero Burning ROM 6" /fREG ADD %KEY%\025 /V 1 /D "REGEDIT /S %cdrom%\Install\Apps\nero\register.reg" /fREG ADD %KEY%\025 /V 2 /D "%cdrom%\Install\Apps\Nero\nero6009.exe /silent /noreboot" /fREG ADD %KEY%\030 /VE /D "Installing Hotfixes" /fREG ADD %KEY%\030 /V 1 /D "%cdrom%\install\hotfixes\hotfixes.cmd" /fRunOnceEx is placed inside $OEM$ folder and alongside with it is cmdlines.txt which is:CMDLINES.TXT[COMMANDS]"RunOnceEx.cmd"Here is winnt.sif if needed to be reviewed.WINNT.SIF;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS Repartition=No WaitForReboot="No" Autoactivate = No UnattendSwitch="no"[GuiUnattended] AdminPassword=" EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1[Display] BitsPerPel=32 Xresolution=1024 YResolution=768 Vrefresh=75[UserData] FullName=" OrgName=" ComputerName=* ProductKey=*[Tapilocation] CountryCode=1 Dialing=Tone[Identification] JoinWorkgroup=*[Networking] InstallDefaultComponents=Yes[Components]msmsgs=offmsnexplr=offThanks again and any help will be appreciated.alex123 Link to comment Share on other sites More sharing options...
homiebrah Posted June 1, 2004 Share Posted June 1, 2004 I had to put a .\ in front of the command:[COMMANDS]".\runonceex.cmd"At the same time, I had regedit open watching to see if it dropped into the right key. Link to comment Share on other sites More sharing options...
Alex123 Posted June 1, 2004 Author Share Posted June 1, 2004 So, that means that it didn't work for you either when left as shown above?After you added .\ did it fix the problem?Thanks for the reply.I will give it a try.Alex123 Link to comment Share on other sites More sharing options...
homiebrah Posted June 2, 2004 Share Posted June 2, 2004 That's correct. I run five commands from that .txt file and neither worked. After adding the .\, it worked like a champ. Link to comment Share on other sites More sharing options...
Alex123 Posted June 2, 2004 Author Share Posted June 2, 2004 Thanks. But let me clear this to myself.When I was running RunOnceEx with the original method, I didn't have to add the ".\" in cmdlines.txt and it worked properly. So, I am assuming it is only needed when used the alternative method of running all software from cd.As you could see I only run RunOnceEx from there, but if I decide to run any other thing from there then I have to add the ".\" before all commands. Am I right?Right now I am in the middle of running the process with the tip you shared with me. Minute 19 and counting.... I will post back with the results.Thanks for all your help.Alex123 Link to comment Share on other sites More sharing options...
Alex123 Posted June 2, 2004 Author Share Posted June 2, 2004 GREEEAAT!That trick solved the issue.Now it is running as it should.Thanks for your help homiebrah. Link to comment Share on other sites More sharing options...
GreenMachine Posted June 2, 2004 Share Posted June 2, 2004 I never fathomed that either, but it seems like many get away without the leading .\. When I was using CMDLINES I had problems sometimes, but never with the .\. It is almost like $OEM% is not the current directory when it is called. But ... i stopped using CMDLINES.TXT, and my curiosity left me ... Link to comment Share on other sites More sharing options...
Alex123 Posted June 2, 2004 Author Share Posted June 2, 2004 A suggestion to the mods. It should be highlighted on the guide to make RunOnceEx from CD that if it fails to call RunOnceEx.cmd during installation, the leading .\ must be placed in the cmdlines.txt file like this.[COMMANDS]".\RunOnceEx.cmd"Hope this help others.Alex123. Link to comment Share on other sites More sharing options...
WwTIPPYwW Posted June 2, 2004 Share Posted June 2, 2004 that solution is only if the file is not in the place it is looking for it.If the file was in the $OEM$ folder then you don't need the .\If the file was in the root of the cd then you do need the .\http://unattended.msfn.org/xp/runonceex.htm Link to comment Share on other sites More sharing options...
GreenMachine Posted June 2, 2004 Share Posted June 2, 2004 ...If the file was in the $OEM$ folder then you don't need the .\If the file was in the root of the cd then you do need the .\...Exactly the behaviour one would expect. However, in practice homiebrah, Alex123 and myself have all found this to be false ... Link to comment Share on other sites More sharing options...
Alex123 Posted June 2, 2004 Author Share Posted June 2, 2004 I second what GreenMacnine says.My file was placed in the correct folder $OEM$ Link to comment Share on other sites More sharing options...
homiebrah Posted June 2, 2004 Share Posted June 2, 2004 Amen to that. I found the correct location for it on GreenMachine's site.http://greenmachine.msfnhosting.com/READING/cmdlines.htm Link to comment Share on other sites More sharing options...
WwTIPPYwW Posted June 2, 2004 Share Posted June 2, 2004 something must be taking the windows install out of the $OEM$ folder I guess. and into some folder in the $OEM$ folder. Isn't that what the .\ means - to go back a level?beats me...also I see that you indicated that you file was in $OEM$ - must have missed that.also - I might suggest putting in your hotfixes first. Get windows up to snuff before anything is installed.And I'd install NAV last, so it isn't running while you are trying to finish installs (besides if you use any VBS scripts to help things along - NAV might stop it).just my 2 cents Link to comment Share on other sites More sharing options...
Alex123 Posted June 2, 2004 Author Share Posted June 2, 2004 Thanks WwTIPPYwW.Good suggestion. I will order things based on your recommendation.It's good to see how everyday something new is learned.Thanks to all.Alex123 Link to comment Share on other sites More sharing options...
GreenMachine Posted June 2, 2004 Share Posted June 2, 2004 ..\ means back up a level, .\ means in the directory in which the file is found. Yes, it appears that for some reason the Current Directory (CD) is not $OEM$ when we start CMDLINES.TXT. Could be the cause of something that ran be before. Don't know, but the .\ fixes it. Easy enough for me! Link to comment Share on other sites More sharing options...
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