Page 1 of 1

MoveFileExA

Posted: Mon Jun 19, 2006 7:13 am
by marlonguerios
Please,

I would like to know how it is possible to move an entire folder with its subfolders regardless of calling Apply Install, using kernel32.dll->MoveFileExA?

I have been trying but it's not working... What may be happening?

~InstallAware Clipboard Data~
~Call DLL Function~
~{6B1D5310-583B-420F-B94A-039C9FCA648A}~
~kernel32.dll,MoveFileExA,"double word",_MOVERESULT,"pointer to string",$_OLDPATH$,"pointer to string",$_BACKUPPATH$,"double word",1,$~
~mIDEFunc.dll\\mEXEFunc.dll~


Thanks,

Marlon

Posted: Mon Jun 19, 2006 7:55 am
by jimo
If this folder is being created during install it will not be available to be moved or copied until after the Apply Install command.

Posted: Mon Jun 19, 2006 8:16 am
by marlonguerios
The folder was there before installation process.

I am getting the error 32 - Some file is being used by another program, but I am sure that it's not. I have closed everything. Is there a way to deal with such situations?

Posted: Mon Jun 19, 2006 4:16 pm
by jimo
If you are not installing or opening any files in the folder then something other than IA is holding a lock on that file or files.