By the way if I don't start the service and just install it, it is not removed on uninstall. I am not sure how to removed this service now. It will not start and I cannot remove it. Will this be a problem going forward trying to install or update this service so that it starts?
From: Kevin Burton [mailto:[EMAIL PROTECTED] Sent: Saturday, July 07, 2007 12:39 PM To: '[EMAIL PROTECTED]'; 'wix-users@lists.sourceforge.net' Subject: RE: Starting two services in one installation? There is not much in the log: MSI (s) (BC:74) [11:05:02:635]: Executing op: ProgressTotal(Total=2,Type=1,ByteEquivalent=1300000) MSI (s) (BC:74) [11:05:02:635]: Executing op: ServiceControl(,Name=ServiceExeFile,Action=1,Wait=1,) StartServices: Service: BsiServices Host MSI (s) (BC:74) [11:05:06:447]: Executing op: ServiceControl(,Name=AmazonServiceExeFile,Action=1,Wait=1,) StartServices: Service: Amazon Services Host Error 1920. Service 'Amazon Services Host' (AmazonServiceExeFile) failed to start. Verify that you have sufficient privileges to start system services. MSI (s) (BC:74) [11:11:00:632]: Product: Bsi WebServices -- Error 1920. Service 'Amazon Services Host' (AmazonServiceExeFile) failed to start. Verify that you have sufficient privileges to start system services. Are you sure you want to cancel? Action ended 11:11:01: InstallFinalize. Return value 3. The firs service (BsiServices Host) didn't have any errors so I am assuming that it successfully started. The message is asking if I have sufficient privileges to start system services. I am using the same credentials to start both services. The message from the installer looks like: cid:image001.png@01C7C088.026B7330 The service does not depend on anything in the GAC (with the exception of the .NET framework assemblies that are in the GAC). I am not aware of any Win32 side-by-side assemblies involved. The two services do share common assemblies. I took out the directive to start the service so now it is just installed and that didn't result in any Wix errors or rollbacks. The problem is that when I go to the Services snap in and try to start the service it still cannot be started. The event log gives little information other than a "file not found" exception was raised. So I started looking at dependencies thinking maybe there was a dependency that I was missing. The two services have almost the exact same dependency structure. I am thinking that there is a dependency on the assembly because at the very beginning of the OnStart event handler I write to the event log but that entry never gets made. It has something to do with loading the assembly. JIT tries to start up a debugger (as indicated by the event log) but cannot because it says there are no users logged in. I guess the problem boils down to figuring out which file is missing and why it is required for this service and not the other. Any suggestions? Kevin From: Mike Dimmick [mailto:[EMAIL PROTECTED] Sent: Saturday, July 07, 2007 7:50 AM To: 'Kevin Burton'; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Starting two services in one installation? 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
<<image001.png>>
------------------------------------------------------------------------- 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