CopyFileA help please
Posted: Fri Jan 15, 2010 7:32 pm
Hello,
I'm new so take it easy on me...
Very simple, all I want to do is:
1.) install a file
2.) use runprogram to run an .exe that will modify the file
3.) then copy the modified file to other directories
I found out that cannot use the copy command since the copy action has to take place after the apply and apparently the copy command is no good after the apply.
Copy Local Files $TARGETDIR$\\abc\\somefile.txt to $TARGETDIR$\\123\\somefile.txt
How do I use CopyFileA to accomplish this?
This is what I've tried so far:
~InstallAware Clipboard Data~
~Call DLL Function~
~{B3D61ED3-3FE0-4A76-BE97-ED665707F1B7}~
~kernel32.dll,CopyFileA,bool,COPYISSUCCESS01,"pointer to string",$TARGETDIR$\\abc\\somefile.txt,"pointer to string",$TARGETDIR$\\123\\somefile.txt,bool,FALSE,$~
~mIDEFunc.dll\\mEXEFunc.dll~
I'm new so take it easy on me...
Very simple, all I want to do is:
1.) install a file
2.) use runprogram to run an .exe that will modify the file
3.) then copy the modified file to other directories
I found out that cannot use the copy command since the copy action has to take place after the apply and apparently the copy command is no good after the apply.
Copy Local Files $TARGETDIR$\\abc\\somefile.txt to $TARGETDIR$\\123\\somefile.txt
How do I use CopyFileA to accomplish this?
This is what I've tried so far:
~InstallAware Clipboard Data~
~Call DLL Function~
~{B3D61ED3-3FE0-4A76-BE97-ED665707F1B7}~
~kernel32.dll,CopyFileA,bool,COPYISSUCCESS01,"pointer to string",$TARGETDIR$\\abc\\somefile.txt,"pointer to string",$TARGETDIR$\\123\\somefile.txt,bool,FALSE,$~
~mIDEFunc.dll\\mEXEFunc.dll~