Bry Posted November 1, 2005 Share Posted November 1, 2005 (edited) 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 MEMany Thanks Edited November 1, 2005 by Bry Link to comment Share on other sites More sharing options...
gresh Posted November 1, 2005 Share Posted November 1, 2005 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-locationdircopy from-location to-locationrename old-filename new-filenameTo 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 More sharing options...
Bry Posted November 1, 2005 Author Share Posted November 1, 2005 Cheers Link to comment Share on other sites More sharing options...
Recommended 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 accountSign in
Already have an account? Sign in here.
Sign In Now