What are the error messages? 'An error' is not helpful. As many details as
possible allow us to narrow down what the problem might be. 

 

Does your new service depend on something you're installing to the GAC or a
Win32 side-by-side assembly? GAC and Win32 side-by-side assemblies are not
committed until InstallFinalize (when the deferred commit actions run)
whereas StartServices has to run within the transaction, IIRC. If there is
such a dependency, you can't start the service - you might need to use a
custom action after InstallFinalize that calls StartService.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin Burton
Sent: 07 July 2007 08:30
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Starting two services in one installation?

 

I have an installation that has been working well for some time now. I am
now trying to add a second service to the installation. I have narrowed it
down to the second service being installed and started. The files install
just fine but when I add the following:

 

       <ServiceInstall Id='BsiAmazonServiceInstall'

                       DisplayName='Amazon Services Host' 

                       Name='AmazonServiceExeFile'

                       Description='Windows Service host for Bsi Amazon Web
Services'

                       Interactive='no'

                       Account='[SERVICEUSER]'

                       Password='[SERVICEPASSWORD]'

                       ErrorControl='normal'

                       Start='demand'

                       Type='ownProcess'

                       Vital='yes' />

       <ServiceControl Id='BsiAmazonServiceControl'
Name='AmazonServiceExeFile'

                       Start='install' Stop='uninstall' Remove='uninstall'
Wait='yes' />

 

I get errors indicating that the service could not be started. I looked at
the msiexec log and it basically told me the same thing that the service
could not be started. This the exact same two directives that I use for the
service that has been installed all along. Any ideas?

 

Thank you.

 

Kevin

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to