Page 1 of 1

how to let user select a file to copy in from target PC?

Posted: Fri Dec 04, 2009 3:56 am
by moorelife
Our installers need a license file which is usually already on the target system somewhere, or on a connected USB stick. We know how to use driveselector, directoryselector and filelist to get the required filespec into a variable, but here is the main problem:

Install Files prohibits using a variable as the source, so we cannot use it.
Run program xcopy does allow variables, but seems to NOT COPY the file...

How do we achieve this?

Thanks in advance,


Dre'

Posted: Fri Dec 04, 2009 5:40 am
by alibaba
did you try:

Code: Select all

Call DLL Function $WINSYSDIR$Kernel32.dll->CopyFile (get result into variable DELETEFILEWINAPI)

Parameters are:

pointer to string <source>
pointer to string <target>
bool <returnval>

Posted: Thu Dec 17, 2009 7:47 am
by moorelife
Thanks for the help, but I fixed it another way.
Now How do I close this thing?