Mark77 Posted May 18, 2004 Share Posted May 18, 2004 Hi all,Before I continue, I would like to point out that this site has the by far most complete / best unattend xp cd guide I've seen till now.My problem is that my runonceex script does not start. I'v ran it on my test computer and all entries were made in the registry. When I run the unattended installation the script hangs on the first entry.I've made the cd almost the same as described by aaron, but just to be sure i'm posting my runonceex.CMDOW @ /HIDSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Configuring Workstation" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /fREG ADD %KEY%\002 /VE /D "DirectX 9.0b" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\DirectX9b\dxsetup.exe /windowsupdate" /fREG ADD %KEY%\003 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /fREG ADD %KEY%\003 /V 2 /D "%systemdrive%\install\WMP9\Wm9codecs.exe /Q:A /R:N" /fREG ADD %KEY%\004 /VE /D "Microsoft Java" /fREG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\apps\msjavx86.exe /Q" /fREG ADD %KEY%\005 /VE /D "MDAC Update" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\hotfixes\ENG_Q832483_MDAC_X86.EXE /C:"dahotfix.exe /q /n" /q" /fREG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fREG ADD %KEY%\051 /VE /D "Securing Workstation" /fREG ADD %KEY%\051 /V 1 /D "REGEDIT /S %systemdrive%\install\Registry\Security.reg" /fREG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\clean.cmd" /fEXITCould anyone tell me why this isn't working ? I would be most grateful. Link to comment Share on other sites More sharing options...
Mark77 Posted May 24, 2004 Author Share Posted May 24, 2004 Nobody has an answer ??? I've reviewed my prepare.cmd but I couldn't find any errors in that. Link to comment Share on other sites More sharing options...
pauledavey Posted May 24, 2004 Share Posted May 24, 2004 Is the CMDOW.exe file in your c:\windows\system32 folder??That could cause it to hang.. Link to comment Share on other sites More sharing options...
codeblue Posted May 24, 2004 Share Posted May 24, 2004 i take it you did follow this guideRunning RunOnceEx from CD...and have put this@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:in your RunOnceEx.cmd, and used CD.txt and put it in your root of XPCD.Have you ran it and checked the entries appear in the reg? (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx) Link to comment Share on other sites More sharing options...
sleepnmojo Posted May 24, 2004 Share Posted May 24, 2004 i take it you did follow this guideRunning RunOnceEx from CD...and have put this@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:in your RunOnceEx.cmd, and used CD.txt and put it in your root of XPCD.It would be fine to include that if he actually used the cdrom variable, which he doesn't.Have you ran it and checked the entries appear in the reg? (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx)This is the advice I would follow. Does anything happen to run also. If not, check your cmdlines.txt to see if it has the runonce cmd file in there. Link to comment Share on other sites More sharing options...
Mark77 Posted May 24, 2004 Author Share Posted May 24, 2004 Guys,Thanks for the answers. I found out that the prepare.cmd tried to copy a file which wasn't included on my install directory.Very stupid mistake. I changed this and now all works well.Thanks again.Mark 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