Well, the interesting thing is that I can use my installer to install the
app, and then manually do
an "unlodctr <app>" and it cleans out the counters perfectly.
Mike Dimmick-2 wrote:
>
> The Perflib key isn't very well designed in Windows; the very long
> REG_MULTI_SZ values are hard to maintain and you actually can't readily
> extract particular strings from the middle of the long string. In practice
> all you can do is append the new counters to the end, meaning that the
> Last
> Counter value increments on every installation.
>
> The WiX custom action is simply calling the LoadPerfCounterTextStrings API
> to install, and UnloadPerfCounterTextStrings to uninstall.
>
> Modern server software creates a very large number of counters. Right now
> the Last Counter value on my computer is set to 12532 - I have .NET
> Framework 1.1 and 2.0 installed, plus four instances of SQL Server (one of
> SQL Server 2000 for my SourceGear Vault source control database, another
> for
> test databases, a SQL Server 2005 Express Edition instance added by VS2005
> install and a SQL Server 2005 Developer Edition instance). Make sure your
> performance counter DLL can cope with six-digit (or greater) counter
> numbers.
>
> --
> Mike Dimmick
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Amol
> Sent: 05 July 2007 17:34
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Performance counters not getting uninstalled properly
>
>
> Hi,
>
> I am using the PerfCounter element to install perfcounters for a service.
>
> <File Id="lodctr.ini"
> DiskId="1"
> Name="applod.ini"
> LongName="app_lodctr.ini"
> Source="$(var.stagingdir)\">
> <PerfCounter Name="app"/>
> </File>
>
> This File element is under a Component that also creates the registry keys
> for the app in the appropriate places.
>
> However, on uninstall, while the registry keys do get deleted, the perflib
> key does not get updated to remove the information for my app.
>
> As a result, every time I install the application, it leaves vestiges of
> the
> last install in the registry and we end up with FUBARed counters
> (eventually. unfortunately it works for a long long time without any
> complaints).
>
> What I find is that uninstalling the
>
> --
> View this message in context:
> http://www.nabble.com/Performance-counters-not-getting-uninstalled-properly-
> tf4030840.html#a11450046
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
--
View this message in context:
http://www.nabble.com/Performance-counters-not-getting-uninstalled-properly-tf4030840.html#a11454087
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users