Jump to content

copy files from cd to HD during setup?


Surfred73

Recommended Posts

Hi !

Setup does NOT copy files from the CD to HD during installation;

i´m using RunOnceEX.cmd with following command for example:

REG ADD %KEY%\010 /V 1 /D copy /Y %systemdrive%\install\TU04\test.txt "%Programfiles%\Test Folder 2005" /f

whats wrong with this code ?

ps.: i just tested the CD with wmware, not in a real WIN installation; maybe thats the problem?

thanks

ma

Link to comment
Share on other sites


Do you have the following line in your winnt.sif?

[Unattended]
OEMPreinstall=Yes

Do you have the files to be copied to %systemdrive%\install located on your CD at $OEM$\$1\Install (or located in your XPCD directory before making the CD at \XPCD\$OEM$\$1\Install) ?

If the answer to either of those questions is no, you've found your problem.

Also, where do you have RunOnceEx.cmd located?

Link to comment
Share on other sites

Hello !

winnt.sif: OEMPreinstall=YES -> ok

RunOnceEx.cmd is located on CD: in the $OEM$ - folder

all my applications for uunattended setup are located on CD in $OEM$\$1\install\...

all the applications are installed after setup , the problem is just the copy-thing

better example:

REG ADD %KEY%\010 /VE /D "TuneUP Utilities 2004" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\TU04\tuneup04.exe /q" /f

REG ADD %KEY%\010 /V 2 /D copy /Y "%systemdrive%\install\TU04\testfile.txt" "%ProgramFiles%\TuneUp Utilities 2004" /f

this for example testfile.txt will not be copied to the harddisk, why? whats wrong?

REG ADD %KEY%\010 /V 3 /D "REGEDIT /S %systemdrive%\install\TU04\tu04.reg" /f

the rest is working well....

ma

Link to comment
Share on other sites

You can do it by a winrar sfx archive.

In the extract path, you enter the path you want.

You can also check two boxes : Hide all and overwrite the files in the SFX options of winrar.

after you just have to put this line

REG ADD %KEY%\010 /V 2 /D "%systemdrive%\install\TU04\your_file_sfx.exe"

That's All

Link to comment
Share on other sites

@ Surfred73

You are short of quotes........

REG ADD %KEY%\010 /V 1 /D "%SystemRoot%\system32\cmd /c copy %SystemDrive%\install\TU04\test.txt \"%ProgramFiles%\Test Folder 2005\"" /f

<edit>

I take it that the %ProgramFiles%\Test Folder 2005 already exists!

If not I would save myself the Trouble and put test.txt inside Test Folder 2005 and place that in .\$OEM$\$Progs before burning and it will be copied straight over automatically

</edit>

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