MoveFileExA

Got a problem you cannot solve? Try here.
Post Reply
marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

MoveFileExA

Post 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
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post 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.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

Post 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?
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post 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.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply