I'm trying to write a small installer stack for Windows deployment. 
The aim is to build a self-expander using the WinZip utility.  This 
allows you to include a command that will be executed once files have 
been copied to the default temp directory.  Such self-expanders do 
the following:

1) unpack all contained files into the temp directory (as defined by $TEMP)
2) execute specified setup command line (e.g. "mc installer.mc")
3) delete all the unpacked files from the temp directory

For a variety of reasons, I want to distribute the MC player and *.mc 
files rather than standalone *.exe files.  What I hope to achieve is 
an installer stack that does the following:

1) copy my app files to a new directory "C:\MyApp" say
2) copy MC player files to a new directory "C:\MetaCard Player" say
3) set up the Windows Registry keys to recognise *.mc files as MetaCard stacks

Given that I need to run the temp directory copy of MC to execute my 
installer stack, I can't use the 'rename' command' to "move" the 
player from the temp directory to its intended location (as the file 
is in use at the time).  I had hoped to 'copy' the MC player and 
mctools.mc from the temp directory into a "C:\MetaCard Player" 
directory.  However, I can't find a 'copy file' command?!  It seems I 
can create files, delete them, move/rename them, but I can't copy 
them.

Any bright ideas, or am I missing the obvious!?

Thanks

Peter
--------------------------------------------------------
Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)1509 264986
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

Reply via email to