When i build, the logs show this: *... Task "CreateProperty" Done executing task "CreateProperty". Task "CreateProperty" Done executing task "CreateProperty". Task "CreateProperty" Done executing task "CreateProperty". Task "CreateProperty" skipped, due to false condition; ( '$(SfxCADll)' == '' and '$(Platform)' == 'x64') was evaluated as ( 'C:\Program Files (x86)\Windows Installer XML v3.5\bin\..\sdk\x86\SfxCA.dll' == '' and 'x86' == 'x64'). ....* which means that SfxCADll get's evaluated in this line in /wix.ca.targets:/ * <CreateProperty Value="$(WixSdkX86Path)SfxCA.dll" Condition=" '$(SfxCADll)' == '' and '$(Platform)' != 'x64'"> <Output TaskParameter="Value" PropertyName="SfxCADll" /> </CreateProperty>*
So when building, the Platform is set to x86, not x64... NOTE that when i said that i set the Platform target to x64 (in my CustomActions project), i meant the option i have to set it under "General" in the Build tab (option under the "Define TRACE constant" checkbox). The "Platform" oprion on top of the Build tab, is set to "Active (x86)", which i suppose corresponds to the value used for '$(Platform)' in wix.ca.targets(?). I do not have the option to set that to x64. Any ideas? Thanks in advance, Stelios Jason Ginchereau wrote: >>> 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 > -- Stelios Kyprou Systems Engineer Formicary - delivering quality financial technology solutions(TM) www.formicary.net ---------------------------------------------------------------------------- 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