It's possible that setting the ServiceControl Wait value to 0 might make a difference. Generally speaking, this is the way you say you don't care if the service starts properly or not. However the documentation says that the SCM needs to get the service into pending state, and I don't know off the top of my head if this means the process has to at least start (and missing dependencies could mean it doesn't).
Phil Wilson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KStuart Sent: Thursday, February 21, 2008 6:18 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Failing gracefully from ServiceControl? I haven't been using windows installer/wix very long so am a little confused, from what I can see the default behaviour of the install sequence is to process all files before attempting to start any services, therefore if your product includes dependent assemblies they will already have processed before the StartServices action, in fact starting services is close to the last action in the install sequence, of course you can always move it further back. If you're installing several services are you sure you don't have any inter-service dependencies you're not taking care of? You can always check if the dependencies are already installed and skip trying to start the service if they are not, but like I said, if your product is installing those assemblies anyhow it shouldn't be an issue. Geoff Finger-2 wrote: > > I've got several services I'm trying to install. If I add > "Start='install'" to the ServiceControl element then it will try to > start them, but it will almost always fail with a 1920 error. I'm > pretty sure this is because some of the services are dependent on > side-by-side assemblies that are being installed at the same time and > so won't be available until the install actually finishes. > > However is there a way to make it so that it will attempt to start the > services but _not_ force a rollback if it fails? There are at least > some circumstances where the assemblies might already have been > installed by another package and it would be nice to at least make the > attempt. There doesn't seem to be any "Vital" attribute for the > ServiceControl element that I can set to "no." There is a "Vital" for > ServiceInstall, but I can't set that to "no" even if it would fix the > above problem, because it _is_ vital that they at least install > properly, even if they don't start right away, and the same goes for > "ErrorControl" in the ServiceInstall element as well I think. > > As an added bonus, if the above can be done is there also a way to do > the service start step silently? We're expecting it to fail most of > the time so there's no need to pop up an error message about it if it > does. > > Thanks! > > And here's the code I've got in case it matters: > > <ServiceInstall Id="SystemServiceInstall" > DisplayName="$(loc.IDS_SERVER) $(var.MAJORVER).$(var.MINORVER)" > Description="$(loc.IDS_SERVER_SERVICE) > $(var.MAJORVER).$(var.MINORVER)" Name="ServerService" > ErrorControl="normal" Start="auto" Type="ownProcess" Vital="yes"> > <ServiceDependency Id ="HTTP" /> > </ServiceInstall> > > <ServiceControl Id="SystemServiceControl" Name="ServerService" > Start="install" Stop="uninstall" Remove="uninstall" /> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > 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 > > -- View this message in context: http://www.nabble.com/Failing-gracefully-from-ServiceControl--tp15624384p15626152.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. 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