Copying file on x64 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

DaveNay
Posts: 4
Joined: Fri Apr 02, 2010 7:32 pm

Copying file on x64

I am having some difficulty copying a vendor provided file during installation on a Win7 x64 system.

In the Properties listing I have a "DLL_DIRECTORY" property with a value of "C:\Program Files\<Vendor>\<Application>\DLL"

Then in the Files and Folders I have a property based folder that references this property and then the custom .dll file is copied into this directory during install.

This setup works fine under x86 WinXP but under x64 Win7 I receive the following error (recorded in the msi installation log)

Code: Select all

WIN64DUALFOLDERS: Substitution in 'C:\Program Files (x86)\<vendor>\<application>\DLL\Milcode.dll' folder had been blocked by the 1 mask argument (the folder pair's iSwapAttrib member = 0).
Notice that the path has somehow automatically been changed to include the (x86) portion? I am assuming this has something to do with the enhanced security model of Win7, but i have no idea how to properly perform the file copy.

We are using Advanced Installer version 8.2 build 35753.

Thanks!
Dave
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Copying file on x64

Hi Dave,

Since you mentioned installing on both x86 and x64 OS's I assume you are authoring a mixed package. In this case, here is an user guide article with the correct approach.

If this is not your case, can you please send us the .AIP (project) and a verbose log of the x64 installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DaveNay
Posts: 4
Joined: Fri Apr 02, 2010 7:32 pm

Re: Copying file on x64

I have sent the requested files.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Copying file on x64

Hi Dave,

You are encountering this behavior because you hard-coded the Program Files path in Install Parameters page.

The correct approach is to use "Property set with formatted" custom actions to set your custom path properties to something like:

Code: Select all

[ProgramFilesFolder]<vendor>
You can read more about this type of custom action here:
http://www.advancedinstaller.com/user-g ... #section27

These custom actions should be scheduled before CostFinalize standard action:
http://www.advancedinstaller.com/user-g ... tions.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”