November 1, 200520 yr 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, 200520 yr by Bry
November 1, 200520 yr 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"
Create an account or sign in to comment