Hi Mike

Thanks for the input... I'll change my approach... I had seen a post from
Rob that dated a few years ago, I was hoping this had changed... 

Thanks for your time,
Marc

-----Original Message-----
From: Michael Turner [mailto:[email protected]] 
Sent: April-15-2014 2:58 PM
To: [email protected]
Subject: Re: [WiX-users] Service Start Too Early - Can I delay on install?

>From http://msdn.microsoft.com/en-us/library/aa371634.aspx

"Note: Services that rely on the presence of an assembly in the Global
Assembly Cache (GAC) cannot be installed or started using the ServiceInstall
and ServiceControl tables. If you need to start a service that depends on an
assembly in the GAC, you must use a custom action sequenced after the
InstallFinalize action or a commit custom action. For information about
installing assemblies to the GAC see Installation of Assemblies to the
Global Assembly Cache."

In short, don't put your service assembly and its dependencies in the GAC,
if you can help it.  Put them in a "real" folder instead.  The .NET "private
deployment" model may seem inefficient to you, but it will save you a good
deal of maintenance burden in the long run if you don't have to deal with
writing a custom action (or have to deal with publisher policies and version
redirection, etc.).

My $.02,
Mike



Marc wrote
> Hello All,
> 
> I have a service that is dependent on a DLL that gets installed from 
> within the same MSI.  This DLL gets registered with the GAC on 
> install.
> 
> My service hangs on install.  If I modify my install not the start the 
> service on installation through service control, and manually start it 
> once the package is installed then everything works fine.
> 
> Is there a way to delay the ServiceControl start action, to make sure 
> the DLL that gets registered with the GAC is properly installed.
> 
> 
> Thanks for the advice,
> Marc





--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Service-Start-
Too-Early-Can-I-delay-on-install-tp7594131p7594135.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the
definitive new guide to graph databases and their applications. Written by
three acclaimed leaders in the field, this first edition is now available.
Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to