Hello, I have an in-house developed windows service that's written in VB.NET and targets the .NET 4.0 framework. I'm trying to install it using wix, as I am doing with several other in-house developed windows services.
This service has a ProjectInstaller.vb. Inside the InitializeComponent sub in that ProjectInstaller.vb, it is adding 3 custom performance counters. When I install the service on my local Win7 x64 dev machine using installutil, it works just fine. Using the wix-generated msi to install the service on the Win2003 x32 server, I get a "The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly" error when the I run the service and it tries to access the custom performance counters. I open perfmon and I see that the performance counters aren't there on the Win2003 x32 server, so I'm pretty sure that's what my problem is. Is there anyway to get the wix installer to run the InitializeComponent in the ProjectInstaller.vb? Here's a snippet of the Product.wxs: <Component Id="ATComponent" Guid="{FF5469B9-F664-444C-A8BC-4AD92973201E}"> <File Id="MyCompanyMyService" Name="MyCompanyMyService.exe" Source="..\..\..\Binaries\" KeyPath="yes" /> <File Id="Config" Name="MyCompanyMyService.exe.config" Source="..\..\..\Binaries\" KeyPath="no" /> <ServiceInstall Id="ATInstaller" Type="ownProcess" Vital="yes" Name="ServiceName" DisplayName="MyCompany My Service Name" Description="Performs a service." Start="auto" Account="LocalSystem" ErrorControl="ignore" Interactive="no"> </ServiceInstall> <ServiceControl Id="StartService" Stop="both" Remove="uninstall" Name="ServiceName" Wait="yes" /> </Component> Thanks ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users