It's relatively easy to install perf counters, but very poorly
documented.  The best I can find right now on the method is this: 

http://msdn2.microsoft.com/en-us/library/aa371878.aspx 

where it discusses using lodctr, unlodctr and the ini and h files.  

This is the way counters have been installed forever on NT, and lodctr
and unlodctr are always in the System folder. 

 

AFAIK a managed performance counter is still just a performance counter,
with a YAIC (Yet Another Installer Class) instead of a data driven
interface. 

 

Some brave soul in WiX could add custom actions for perf counters that
would call the APIs directly (LoadPerfCounterTextStrings) then we'd only
have to wrestle with the ini and.h file formats. 

 

Phil Wilson 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sunghwa
Jin
Sent: Friday, September 07, 2007 3:15 PM
To: WiX-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to schedule a deferred custom action
afterGAC'ing assemblies?

 

Answering myself.

 

This is discussed here: http://support.microsoft.com/kb/934388

 

Since creating managed performance counter without using managed
installer class will be very hard if that's ever possible, natural
choice would be creating separate assembly which won't be GACed.

 

Thanks,

Sunghwa

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sunghwa
Jin
Sent: Friday, September 07, 2007 1:07 PM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] How to schedule a deferred custom action after
GAC'ing assemblies?

 

Hi,

 

I have custom actions that calls InstallUtil.exe. Things works just fine
now except I have left-over .InstallState file in my installation
folder.

 

It turns out this is because the custom action that calls
InstallUtil.exe during installation before it GACs the assembly while it
calls InstallUtil.exe during uninstallation after the assembly is
removed from GAC. 

 

To solve this, I need to schedule the custom action after the assembly
is added to GAC during installation. How can I do this?

 

I tried scheduling the custom action after MsiPublishAssemblies, but it
seems like real GAC'ing is still done after the custom action.

 

Thanks,

Sunghwa

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to