Re: [WiX-users] [SPAM] Component Attributes

2014-02-04 Thread Phill Hogland
I want to thank Bob and Phil for the interaction and suggestions, and the Wix
contributors for the Wca library.  I reevaluated what I was trying to do and
found that by calling WcaIsPropertySet(System64Folder)  I was able to
detect the platform (x64 or x86) from within my CA.  I had originally tried
to create a dismapi application but ran into too many roadblocks to use that
approach.

1) The dismapi sample programs would not compile on my vs2010/Win 7
development system, even with the ADK and the Win 8.1 SDK installed and
pointed at in the sample projects.  My CA project got the same errors.
2) The dismapi is only distributed on Win 8 or later.  To use a dismapi
application on Win 7 (which is where I need to install NetFx3) a customer
must install the ADK first.  (The ADK or the dismapi.dll related files do
not appear to be redistributable.)

So while calling an API is prefered, I reverted to calling dism.exe.  On
Windows 8 or later I found that calling 'fondue.exe /enable-feature:NetFx3
/hide-ux:all' was simpler than calling dism.exe, as it handles the scenario
where the payload has been removed and dism.exe throws and error.

Thanks.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-Attributes-tp7592263p7592358.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=121051231iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [SPAM] Component Attributes

2014-02-03 Thread Phill Hogland
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=121051231iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [SPAM] Component Attributes

2014-02-03 Thread Phil Wilson
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=121051231iu=/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=121051231iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [SPAM] Component Attributes

2014-02-03 Thread Phill Hogland
Thanks for the ideas.  I will study them.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-Attributes-tp7592263p7592319.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=121051231iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [SPAM] Component Attributes

2014-02-02 Thread Bob Arnson
On 31-Jan-14 11:42, Phill Hogland wrote:
 I am probably over looking something simple, but in a Wix Custom Table Row
 element, how do I  indicate that I want the data in that row (to be passed
 to a CA) to be a component's attributes?
Not sure what you mean. Attributes are usually represented as integer 
bit flags.

-- 
sig://boB
http://joyofsetup.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=121051231iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] [SPAM] Component Attributes

2014-01-31 Thread Phill Hogland
I am probably over looking something simple, but in a Wix Custom Table Row
element, how do I  indicate that I want the data in that row (to be passed
to a CA) to be a component's attributes?





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-Attributes-tp7592263.html
Sent from the wix-users mailing list archive at Nabble.com.

--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users