Install Files and Move Local Files

Got a problem you cannot solve? Try here.
Paul
Posts: 8
Joined: Mon May 22, 2006 4:38 pm

Install Files and Move Local Files

Postby Paul » Fri Sep 15, 2006 3:56 pm

What I am trying to achieve is to move files ( sort of a backup feature of all dlls) and then install new dlls. I do not know what files I will be moving so i use Move Files and wild card to specify them.

Can I call Move Local Files and Install Files (and if yes in what order) before issuing Apply Install?

When I do that some of the files are not getting installed. When I do not move files and install to the new directory then everything is OK.

Thank you
Paul

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Sep 15, 2006 7:10 pm

Instead of using the MSI command for moving local files, you should directly execute that step as native Win32 calls using the Call DLL Function plug-in on the CopyFileA/MoveFileA commands in kernel32.dll, the Find All Files command to find the actual files to execute the native calls on, as well as the Label, GoTo, and Parse String commands to loop through the list of matching files that Find All Files returns.

Otherwise, you will run into timing issues when calling both Install Files and Copy/Move Local Files with the same target paths.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 96 guests