If you say you want to wait for the service startup to complete then MSI takes that to mean you care if it starts, so change the wait type.
Phil Wilson From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Rerick Sent: Monday, April 07, 2008 11:26 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Test to see if a service is installed and running All, I am using WiX 3.0.3725. I'm trying to detect if a service is installed and running when my software is installed. I have to stop 2 services; one of the services may not be installed on the target computer [and this is OK]. This works OK - I don't get an error when I try to stop a service that isn't there. Then I remove some files and folders. After the file/folder delete, I need to start the two services up again. If the second service doesn't exist on this computer, that is OK and is not an error condition. Currently, I get an error when the second service can't be started and the install rolls back. I understand why the error happens - I'm trying to unconditionally start the service and it can't be started. I do the service stop, file removal, service start in a Component under the Directory INSTALLDIR element. So I would like to be able to either: 1) Detect if the second service is even installed and if it isn't, then skip starting it or 2) Ignore any errors if the second service can't be started and continue with the install So far, I haven't been able to figure out how to do this. I've looked at the ServiceControl and StartService/StopService elements. Thanks in advance for any help. Mike Rerick Sr. Software Engineer - Professional Services [cid:image001.gif@01C898A3.89886E10] <blocked::http://www.iwsinc.com/> 9200 S.E. Sunnybrook Blvd., Suite 170 Clackamas, OR 97015 Phone: (503) 353-8068 Fax: (503) 353-8065 The information contained in this transmission contains potentially privileged, export controlled and/or confidential information of Imageware Systems, Inc. or its customers or partners. It is intended only to be read by the person(s) named above and for no other purpose. You are hereby notified that any dissemination, distribution, duplication of this communication or use of its contents for any purpose not authorized expressly by Imageware Systems, Inc. is strictly prohibited and could lead to both civil and/or criminal penalties. If you are not the intended recipient, you are prohibited to review the contents herein and please contact the sender by reply e-mail and destroy all copies of the original message. To reply to our e-mail administrator directly, please send an e-mail to [EMAIL PROTECTED]
<<inline: image001.gif>>
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users