Jump to content

Copying the I386 Folder during Install


Recommended Posts

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.au

RUNONCEEX.INF

RUNONCEEX.INF

Link to comment
Share on other sites


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 copy

IF 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
EXIT

then 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

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.

OR

Does it get called from the installation CD? :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...