Re: [WiX-users] Service Start Too Early - Can I delay on install?
I have removed the GAC dependency, as this seems to be the best approach... Thanks for the idea. -Original Message- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: April-15-2014 4:38 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Service Start Too Early - Can I delay on install? There is an option you might want to try but it isn't very pretty, schedule a call to "net start servicename" after the GAC install. As someone else said it is better to remove the GAC dependency but I think it should work. Neil -Original Message- From: Marc Beaudry [mailto:mbeau...@matrox.com] Sent: 15 April 2014 19:18 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Service Start Too Early - Can I delay on install? 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 -- 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 WiX-users@lists.sourceforge.net 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 WiX-users@lists.sourceforge.net 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Service Start Too Early - Can I delay on install?
There is an option you might want to try but it isn't very pretty, schedule a call to "net start servicename" after the GAC install. As someone else said it is better to remove the GAC dependency but I think it should work. Neil -Original Message- From: Marc Beaudry [mailto:mbeau...@matrox.com] Sent: 15 April 2014 19:18 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Service Start Too Early - Can I delay on install? 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 -- 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 WiX-users@lists.sourceforge.net 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Service Start Too Early - Can I delay on install?
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:mcturner...@gmail.com] Sent: April-15-2014 2:58 PM To: wix-users@lists.sourceforge.net 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 WiX-users@lists.sourceforge.net 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users