Jump to content

Copy Question


Recommended Posts

Hi, can't find much info on this. I want to use wpi to copy one file off the cdrom (in %cdrom%\software\) to a sub folder in program files on the system drive.

I believe its possible to do this using copy/xcopy within wpi? If so how?

Also i want to use getOSver to not install a program on certain os's. As i have one program that won't work on 98 and ME. How do i use this so my applciation won't try to install on 98 and ME

Many Thanks

Edited by Bry
Link to comment
Share on other sites


To copy a file from one location to another:

cmd1[pn]=['filecopy %cdrom%\\AXP\\$OEM$\\hosts.txt %windir%\\System32\\drivers\\etc\\HOSTS']

Commands that can be used is:

filecopy from-location to-location

dircopy from-location to-location

rename old-filename new-filename

To ensure that a program will only install on Windows XP use the line below.

cond[pn]=['getOSver()=="XP"']

getOSver returns the following strings: XP, 2K, NT, ME, 98, 95 or "Not found"

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