SmokinXP Posted April 29, 2004 Share Posted April 29, 2004 I've been trying to work out how to copy the I386 folder from the install CD during unattended install.I Have tried using RunOnceEx with the following: HKLM,"%RunOnceEx%\install20",1,,"%11%\CMD.exe /C Xcopy %CDROM%\I386\*.* %24%\Install\I386 /S /V /C /F /H /Exclude:%11%\NoCopy.lst"I have a batch file (called at "install15") that enumerates %CDROM% but it won't parse to the next line (as above) when called in RunOnceEx.I had only one success and that was calling a batch from RunOnceEx, but it worked once and once only.Copy of my RunOnceEx.inf attached. ANY pointers greatly appreciated!!! kim@mitc.com.auRUNONCEEX.INFRUNONCEEX.INF Link to comment Share on other sites More sharing options...
Alanoll Posted April 29, 2004 Share Posted April 29, 2004 you can't use system variables in an INF / RunOnceEX.they just won't work.you're probally using SET to enumerate %CDROM%. %CDROM% is no longer existent after the batch you call to enumerate it exits.if you were to use %CDROM% you would need to define it in the [strings] section, but then it would have to be constant.use a batch file for the copyIF EXIST D:\Win51.IP SET CDROM=D:(and so on for that, as far as you want) XCOPY %CDROM%\I386\*.* C:\Windows\Install\I386 /S /V/ C/F /H /Exclude:C:\Windows\System32\NoCopy.lst EXITthen in your INF file....HKLM,"%RunOnceEx%\install20",1,,"%1%\CopyBatch.cmd"%1% comes to the directory that the INF is called from. Link to comment Share on other sites More sharing options...
SmokinXP Posted April 29, 2004 Author Share Posted April 29, 2004 Thanks for the snappy (quick) answer. Let me get this right...The RunOnceEx.Inf file is called from the %WinDir% is it not. That enumerates (on my PC) to C:\Windows.ORDoes it get called from the installation CD? Link to comment Share on other sites More sharing options...
Alanoll Posted April 29, 2004 Share Posted April 29, 2004 if RunOnceEX.inf is called FROM C:\Windows as in that's where it resides....the i think %1% should become C:\Windows 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