I'm assuming there isn't a simple check you could do based on VersionNT64 because you have a mix of 64 and 32 bit CAs, so...
The kind of thing you'd do at run time is the usual SQL query game. MsiGetActiveDatabase, MsiDatabaseOpenView() with a SQL Select that returns the component's attributes, then MsiRecordGetInteger() . --------------- Phil Wilson On Mon, Feb 3, 2014 at 7:29 AM, Phill Hogland <phogl...@rimage.com> wrote: > I understand that component attributes are bit flags. I want to test for the > 64 bit flag in my immediate CA, which schedules a deferred CA, so that I > know whether the CA is running on a x64 architecture. There are several > examples in the source code of testing the component attribute flag in > secureobj.cpp and XmlConfig.cpp, like this. > BOOL fIs64Bit = iCompAttributes & msidbComponentAttributes64bit; > > What I am struggling with is how to initialize iCompAttributes so that I can > do this test in the CA. My long term goal is to figure out how to do the > WixExtension with the dom parser, but for now I am using the Custom Table > driven CA approach and focusing on writing the CAs using the Wix source as a > teacher. So I am wondering how to either populate a row in my wxs file > with the value that should be passed to iCompAttributes, or from within the > immediate CA, how to use the Component_ identifier (which I also put in the > Custom Table) to look up the iCompAttributes value (so that I can then > implement code to test the flags). > > Maybe I am just making this issue hard since in the case of x64, I can also > set a row value in the wxs Custom Table to "x64". I was trying to avoid > manually maintained literals and make use of testing the component > attributes flags, but I need to figure out how to get the value to do the > test. Thanks for giving me any suggestions. I appreciate the advice. > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-Attributes-tp7592263p7592304.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users