I'm referring to the ServiceInstaller class (http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceinstal ler.aspx) and I assure you it is not needed. The only class needed (unless you want to rewrite all this yourself) for a service that is written in .NET is ServiceBase (http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.a spx)
Windows Installer has built in support for installing Windows Service ( ServiceInstall, ServiceControl table ) that makes ServiceInstaller unneeded. Don't believe me? I'm not offended. I wrote nearly 7 years ago a blog entry called MSI vs .NET where I wrote: http://blog.iswix.com/2006/07/msi-vs-net.html "And of course just TRY telling .Net developers that there is a better way to do it. You'll quickly find out how much respect they have for the guy that does installations. After all, Setup is just XCOPY, right?? :-)" Regards, Chris ---------------------------------------- From: "Katherine Moss" <[email protected]> Sent: Friday, March 22, 2013 9:53 AM To: "[email protected]" <[email protected]>, "General discussion for Windows Installer XML toolset." <[email protected]> Subject: RE: [WiX-users] COM+ registration help What do you mean, unneeded code for installing Windows services? What if the service is written in .net? Then the code is "needed". -----Original Message----- From: Christopher Painter [mailto:[email protected]] Sent: Friday, March 22, 2013 9:24 AM To: General discussion for Windows Installer XML toolset.; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] COM+ registration help My COM+ experience is 10 years old but here's something I'm wondering: I wonder if what ever classes that are in System.Enterprise.Services ( or whatever that namespace is that was thrown around ) are really needed? Maybe those are just wrappers in .NET for the COMAdmin objects just like they created (unneeded) classes in .NET for installing Windows NT services. I'm wondering if like .NET Windows Services that perhaps there are useful classes for creating and hosting a COM+ application but that perhaps there are other classes that are less then truly needed. I don't care enough about COM+ to find out so just take that public thought as-is. ---------------------------------------- From: "Neil Sleightholm" <[email protected]> Sent: Friday, March 22, 2013 2:46 AM To: "General discussion for Windows Installer XML toolset." <[email protected]> Subject: Re: [WiX-users] COM+ registration help I'll see if I can make a simple repro first and try and come up with some ideas. dmm - can you raise a defect so this is not lost? >Any thoughts how to fix it? I hope we don't have to do the whole >marshalling to a separate process that DTF does just to handle COM+ >registration. That will be expensive. > > >On Wed, Mar 20, 2013 at 2:44 PM, Neil Sleightholm ><[email protected]>wrote: > >> I have had a look at the WiX code and my suspicion is that it loads >>which ever version of the .NET framework is in the msiexec process >>space, so if .NET 2.0 (or 3.5) was first then that is how it loads >>the COM+ assembly therefore if yours if .NET 4.0 is won't work. I am >>not sure how that could be fixed. >> >> Could you try starting your msi and then using something like process >>explorer to see what version of .NET is loaded in the same process >>space as you msi? >> >> -----Original Message----- >> From: DexterSinister [mailto:[email protected]] >> Sent: 20 March 2013 21:23 >> To: [email protected] >> Subject: Re: [WiX-users] COM+ registration help >> >> Yes, Neil ... RegSvcs works fine for either version of the DLL, installs >> fine ... uninstalls fine ... >> >> Weird, eh? >> >> I'm going to take a look at the ComPlus extension code to see if I >> can find any obvious reason why it's not working ... not familiar territory, >> but I may as well give it a shot ... >> >> Thanks, >> >> -dmm >> >> >> >> -- >> View this message in context: >> >>http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/COM-regi >>str >>ation-help-tp7584402p7584501.html >> Sent from the wix-users mailing list archive at Nabble.com. >> >> >> >>---------------------------------------------------------------------- >>--- >>----- >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics Download AppDynamics Lite for >> free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> _______________________________________________ >> WiX-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> >> >>---------------------------------------------------------------------- >>--- >>----- >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics Download AppDynamics Lite >>for free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> _______________________________________________ >> WiX-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> >----------------------------------------------------------------------- >--- >---- >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics Download AppDynamics Lite >for free today: >http://p.sf.net/sfu/appdyn_d2d_mar >_______________________________________________ >WiX-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

