Sorry. I'm sure there was some really good reason why they wrote
MsiPublishAssemblies that way ( I don't buy the rollback reason.... getting it
to work at all is more important then getting it to rollback IMO ), but it
really stinks since installing in the Commit phase doesn't match the expected
behavior of installing in the deferred phase.
All you can really do is
1) Install as prereq to eliminate the race condition
2) Don't rely on the WinSXS/GAC ( private assembly or statically link )
3) Don't try to start the service .. insist on a reboot instead
4) Don't rely on the assembly ... somehow use reflection / late binding to
start the service with minimal functionality and then light up the rest when
the assembly becomes available.
Maybe there are some other patterns that I'm missing....
--
Chris http://blog.deploymentengineering.com
Peter Bergmann <[EMAIL PROTECTED]> wrote:
... right, just checked it. Well, that really sucks ;(
-------- Original-Nachricht --------
> Datum: Thu, 11 Oct 2007 06:20:23 -0700 (PDT)
> Von: Christopher Painter
> An: Peter Bergmann , [email protected]
> Betreff: Re: [WiX-users] Starting service after InstallFinalze
> I'm afraid that you haven't really solved it An immeadiate CA scheduled
> after InstallFinalize won't have the needed permissions to start the service
> in scenarios like UAC/Limited User and Elevated/Managed installations.
>
> I would personally bite the bullet and get a bootstrapper together to
> lay the prereq down so that ServiceStartService will function as designed
> without the need for a CA. The real problem here is the Assembly Publishing
> / Merge Module story, not the SCM story.
>
> --
> Chris http://blog.deploymentengineering.com
>
>
> Peter Bergmann wrote:
> 6599 is also too early - SxS is not ready yet at this point.
>
> But I've solved it now as proposed by you and Rob using:
>
>
> ...
>
>
> ...
>
>
>
>
>
> Many Thanks!
>
> However I'm still wondering what the "official" way is to start up a
> service that needs access to the included VC2005 distributable runtime
> libraries
> ... ?
>
> Cheers,
> Peter
>
> -------- Original-Nachricht --------
> > Datum: Thu, 11 Oct 2007 13:58:06 +0200
> > Von: "János Brezniczky"
>
> > An: "Peter Bergmann"
> > Betreff: Re: [WiX-users] Starting service after InstallFinalze
>
> > Try that with before installfinalize (6599 or so).. it seems like the
> > installation script which this operation should have been written to has
> > already run.
> >
> > 2007/10/11, Peter Bergmann :
> > >
> > > nope ... that did not work.
> > > If I force StartServices directly after install finalize either using
> > orca
> > > or using "Sequence=..." the install process terminats with error code
> > 2762
> > > in the very end ... whatever that means ...
> > >
> > >
> > > -------- Original-Nachricht --------
> > > > Datum: Thu, 11 Oct 2007 13:08:55 +0200
> > > > Von: "János Brezniczky"
>
> > > > An: "Peter Bergmann"
> > > > CC: [email protected]
> > > > Betreff: Re: [WiX-users] Starting service after InstallFinalze
> > >
> > > > Sounds evident, if I'm not wrong... the answer is in your letter.
> > > > Have you tried sequencing it with installexecutesequence (and
> > > > adminexecutesequence)?
> > > > I mean adding
> > > >
> > > >
> > > >
> > > >
> > > > It should work as an override.
> > > > A typical value for enter_a_sequence_number_big_enough_here could be
> > > > anything > 6600, e.g. 6700 should be fine, since InstallFinalize
> > > typically
> > > > has a default sequence of 6600. This latter value can be checked
> using
> > > > Orca.
> > > >
> > > >
> > > > 2007/10/11, Peter Bergmann :
> > > > >
> > > > > I'm writing an installer that installs a service which depends on
> > the
> > > > > VC2005 runtime libraries. I'm including the runtime's .msm files
> > using
> > > > > and which works just fine.
> > > > > However at the time when the StartServices action gets triggered
> the
> > > SxS
> > > > > stuff obviously is not yet in place and my service fails to start.
> > > > >
> > > > > The only solution I came up with is to not start the service
> during
> > > > > install and ScheduleReboot after InstallFinalize. After the reboot
> > the
> > > > > service starts fine automatically. But a reboot is not acceptable
> > for
> > > > this
> > > > > product :(
> > > > >
> > > > > Is there a way to schedule the StartServices action after
> > > > InstallFinalize
> > > > > ?
> > > > >
> > > > > If not - Could I include the vcredist_x86.exe binary into my
> > installer
> > > > and
> > > > > run it automatically first ? How would I do that?
> > > > >
> > > > > Many Thanks for any hints!
> > > > >
> > > > > Cheers,
> > > > > Peter
>
> --
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ---------------------------------
> Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get
> listings, and more!
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
---------------------------------
Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. -------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users