Your keypath is 'DT.MyDir' (as you have authored it).
-----Original Message-----
From: Jeff Perrigo [mailto:[email protected]]
Sent: Wednesday, January 06, 2010 5:18 PM
To: General discussion for Windows Installer XML toolset.
Cc: Bob Arnson
Subject: Re: [WiX-users] Performance Counters supported for MSP?
Hi Bob,
I'm fairly new to WiX/Windows Installer, but I think things are starting to
click. The keypath is set at the component level for the counters
component. This one has been a little confusing since the component itself
doesn't specify a directory. There is an include in a DirectoryRef which
includes the file that contains the counters component, so I believe the
keypath must be that directory. Since a patch can't change the keypath of a
component I'm assuming I can't create a patch that is uninstallable if I
include this component. I've included a sample of the code that I am
maintaining for clarification.
<Component Id="MyCountersComponent" Guid="{MY_GUID}" KeyPath="yes">
<util:PerformanceCategory Id="PerfCategoryID" Name="PerfCategory Name"
Help="Performance Category of my component" MultiInstance="no">
<util:PerformanceCounter Name="Retrieval Time" Type="averageCount64"
Help="The time in milliseconds to retrieve data.">
</util:PerformanceCounter>
</util:PerformanceCategory>
</Component>
<Fragment>
<DirectoryRef Id='DT.MyDir'>
<Component
Id='CP.myfile.dll'
Guid='ANOTHER_GUID'
>
<File
Id='FL.myfile.dll'
Name='myfile.dll'
Source='$(var.SourceDir)\myfile.dll'/>
</Component>
<?include PerformanceCounters.wxi?> <!-- This refers to the file that
contains the component above -->
</DirectoryRef>
</Fragment>
There is also a feature that includes:
<ComponentRef Id='CP.myfile.dll' Primary="yes"/>
<ComponentRef Id="MyCountersComponent"/>
-----Original Message-----
From: Bob Arnson [mailto:[email protected]]
Sent: Tuesday, January 05, 2010 5:02 AM
To: General discussion for Windows Installer XML toolset.
Cc: Jeff Perrigo
Subject: Re: [WiX-users] Performance Counters supported for MSP?
On 12/31/2009 6:05 PM, Jeff Perrigo wrote:
> I understand that patches cannot be uninstallable if they modify the
CreateFolder table. I can set the patch so it is not uninstallable to get
around this issue, but I'm wondering where CreateFolder comes in since my
component does not use CreateFolder. Does Util:PerformanceCounter
automatically update the CreateFolder table?
No. What's the keypath of your component?
--
sig://boB
http://joyofsetup.com/
----------------------------------------------------------------------------
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users