FWIW, we use the built in functionality that Christopher is talking about in 4 different services and have not had any issues with it...
-----Original Message----- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Saturday, February 12, 2011 9:48 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Unmanaged c++ window service installation You are welcome! This simple answer is the source of my frustration for the last 5 years. If you create a .NET service and run it from the command line it will even say something to the effect of "you must use installutil...." and if you go to the local bookstore and pick up any book on .NET and flip to the chapter on services you'll see ServiceInstaller mentioned. All of these sources of information overlook MSI and the simple and reliable solution that it already provided. Now that said you should also be aware of the SC.EXE command built into Windows (XP+) You can use this to manually define your service and is useful in the development environment. --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me ----- Original Message ---- From: Mark Turek <turekm...@hotmail.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Sat, February 12, 2011 5:40:30 PM Subject: Re: [WiX-users] Unmanaged c++ window service installation Thank You. That would make sense. If .net service installer is out of the picture then SCM is all what matters and then service is a service. -----Original Message----- From: Christopher Painter Sent: Saturday, February 12, 2011 5:21 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Unmanaged c++ window service installation That's a bit of a trick question because it assumes one should use custom actions in the first place. I always use the built-in standard actions as encapsulated by the WiX elements ServiceInstall and ServiceControl. A service is a service is a service. The Service Control Manager has an API and it makes no difference if you are using C, C++, C# other then the differences in how each of those languages interact with that API. In .NET is't the ServiceBase class that helps hide a lot of these details. I suggest not using the custom action and read the following: http://blog.deploymentengineering.com/2006/07/msi-vs-net.html http://blog.deploymentengineering.com/2011/01/augmenting-installshield-using-windows_19.html --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me ----- Original Message ---- From: Mark Turek <turekm...@hotmail.com> To: wix-users@lists.sourceforge.net Sent: Sat, February 12, 2011 5:01:52 PM Subject: [WiX-users] Unmanaged c++ window service installation 1. Is there any difference between installing managed windows services versus unmanaged ones using standard custom actions? 2. If yes then what is the best way to install unmanaged windows service (any examples?) I just wanted to get some feedback from you guys to save some time since I am not a Wix person. My windows service has it’s own installer which I wrote and I could just call it from the custom action dll, which I already have. Is this a way to go? There has to be some standard way to do this. What about wix utilities? ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users