>> I tried setting the Platform target of the custom actions project to x64

That should do exactly what you want. When you have set that, can you check the 
build logs to see whether it is getting sfxca.dll from Program Files 
(x86)\Windows Installer XML v3.5\SDK\x64 ?

The relevant logic is on line 87 of wix.ca.targets:
    <CreateProperty Value="$(WixSdkX64Path)SfxCA.dll" Condition=" '$(SfxCADll)' 
== '' and '$(Platform)' == 'x64'">
      <Output TaskParameter="Value" PropertyName="SfxCADll" />
    </CreateProperty>

-Jason-

-----Original Message-----
From: Stelios Kyprou [mailto:stelios.kyp...@formicary.net] 
Sent: Tuesday, June 29, 2010 9:53 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] sfxca.dll 32 and 64 bit version in visual studio 2010 (wix 
3.5)

Hello wix users!
This is my first email, so if i do something wrong, please bare with me (but DO 
tell me ;)

I have a situation where i'm really stuck and want to do things the right way:
I use Wix 3.5.1811.0 in visual studio 2010.
Skipping the basic configuration stuff, i create a "c# custom action project" 
and add my custom action in there.
That custom action project uses a dll that is 64bit I then use it properly in 
my .wixproj by referencing the customaction project.

The question is:
When i build the C# custom action project, it grabs sfxca.dll from C:\Program 
Files (x86)\Windows Installer XML v3.5\SDK\x86 instead of C:\Program Files 
(x86)\Windows Installer XML v3.5\SDK\x64.

Thus, when i build the msi and run it, in the logs i get a 
BadImageFormatException and the installation fails.

I did a hack, where i just replaced the sfxca.dll in the X86 folder with the 64 
bit version, rebuild, and the installer runs fine. But OBVIOUSLY this is not 
acceptable.

How can i configure the project to use the 64bit version of sfxca.dll which is 
under C:\Program Files (x86)\Windows Installer XML v3.5\SDK\x64 WITHIN visual 
studio?

-I tried setting the Platform target of the custom actions project to
x64 : No positive results.
-Under the "Build" tab in the custom actions project properties, the 
Configuration is set to "Active(Release)" and Platform to "Active(x86)". 
I have No other available options under Platform.
-Informationally, in the .wixproj, Product/Platform is set to x64 (for a
64 bit installer).

Any suggestions would be appreciated!

Regards,
Stelios

--
Stelios Kyprou
Systems Engineer
Formicary - delivering quality financial technology solutions(TM) 
www.formicary.net o : +44 (0)20 7920 7100


----------------------------------------------------------------------------
This message is confidential and may be privileged. It is intended solely for
the named addressee. If you are not the intended recipient, please inform us.
Any unauthorised dissemination, distribution or copying hereof is prohibited.

Formicary Limited registered office in England and Wales, address 1 Taillar
Road, Hedon, East Yorkshire HU12 8GU, registration number 3894343, VAT number
747644304, does not guarantee that the integrity of this communication has been
maintained nor that this communication is free of viruses, interceptions or
interference.
----------------------------------------------------------------------------

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to