Jump to content

Recommended Posts

Posted

I've been tryin to get this installation going, with little luck.

Everything runs for the first CD, but when I try to get the 2nd CD, I get the error that says.

"Cannot perform a cyclic copy."

Here is the important code for the first CD....

IF EXIST %systemdrive%\install\applications.cmd GOTO RUNBATCH
SET CDROM2=
IF EXIST D:\install\applications.cmd SET CDROM2=D:
IF EXIST E:\install\applications.cmd SET CDROM2=E:
IF EXIST F:\install\applications.cmd SET CDROM2=F:
IF EXIST G:\install\applications.cmd SET CDROM2=G:
IF EXIST H:\install\applications.cmd SET CDROM2=H:
IF EXIST I:\install\applications.cmd SET CDROM2=I:


ECHO Please be patient while files are copied to your hard drive.
xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /Y
ECHO.

The file structure for the 2nd CD is:

$OEM$

L $1

L Install

L Applications

L applications.cmd

I have tried changing the destination folder Install2, to get rid of the duplicate issue, and I've even tried removing the $OEM$ & %1 folders.... with no avail.

Please help....this is the last BIG bug I need to work out...


Posted

I actually got that when I googled the error before. I'm new to batch files, xcopy, and even newer to xxcopy. I don't really know what the switches do.

I do have a bit of coding knowledge...but its not helping here

Posted

CDROM2 doesn't seem to get set right.

"Cyclic copy" error means you're trying to copy the files onto themselves.

Do you really have the applications.cmd in the install folder or should it be

IF EXIST D:\applications.cmd SET CDROM2=D:

Posted

it looks like i already have an install folder, because of some previous installations. I am testing a different folder setup as I type this..so I will post if it works.

Posted

Somehow, my post vanished. I've either figured out the problem, and created another, or made another problem altogether...

The problem is now that somehow, the install folder is copied from the original CD, or from the hard drive..I can't tell how or why..(the CD is removed)

CD 1:

$OEM$

L $1

L install

L Applications

Start.cmd

CD 2: Structure

I386

$OEM$

L $1

L install

L Applications

applications.cmd

(all the code in Applications.cmd works without a hitch.)

CLS
@echo off
TITLE Windows XP SP2 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations

ECHO Starting installation of Applications
ECHO.


BLAH BLAH...SEVERAL APPLICATIONS ARE INSTALLED HERE

PAUSE


ECHO.
ECHO Ejecting CD-ROM Drives...
%systemdrive%\install\tools\cdr.exe open %CDROM%
ECHO.
ECHO Insert CD 2 of the installation and...
PAUSE
%systemdrive%\install\tools\cdr.exe close %CDROM%
PAUSE



SET CDROM2=
IF EXIST D:\install\applications.cmd SET CDROM2=D:
IF EXIST E:\install\applications.cmd SET CDROM2=E:
IF EXIST F:\install\applications.cmd SET CDROM2=F:
IF EXIST G:\install\applications.cmd SET CDROM2=G:
IF EXIST H:\install\applications.cmd SET CDROM2=H:
IF EXIST I:\install\applications.cmd SET CDROM2=I:


ECHO Please be patient while files are copied to your hard drive.
xcopy %CDROM2%\install %systemdrive%\install2\ /S /C /Q /H /Y
ECHO.


start /wait %systemdrive%\install2\applications.cmd



:ERROR
IF NOT EXIST %systemdrive%\install2\applications.cmd GOTO _ECHO
GOTO END

:_ECHO
ECHO.
ECHO *******************WARNING*******************
ECHO OFFICE 2003 was not installed

PAUSE

:END
ECHO.
::ECHO Deleting Temp Installation Files...
::RD /S /Q %systemdrive%\install2
::ECHO.
PAUSE
EXIT

Thanks for any help. I really appreciate it...

Posted

All content of the $OEM$ folder is automatically copied during the unattended setup.

Look here for an extended explanation.

Insert:

Echo CDROM2 is %CDROM2%
Pause

before your xcopy for debugging

Posted

Whats the purpose of this CD?

CD 2: Structure

I386 ???

$OEM$ ???

L $1

L install

L Applications

applications.cmd

Why not just

Install <fldr>

L applications.cmd

Posted

I actually have been testing that one as I type this. I am creating the ISOs to load into Virtual... I'll probably just PM you so we can stop wasting 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 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...