What I've done in the past is just include a ServiceControl element in the component:
<ServiceControl Id="iis5ServiceControl" Name="w3svc" Start="both" Stop="both" /> You might change the Start and Stop attributes to get what you want. I was installing an ISAPI filter. The schema might be a little different in WiX3, but you get the idea. You shouldn't need your own CA for this--the built in one in WiX should do what you want. You might also need to put a condition on it to ensure that IIS is installed or something. Joe ----- Original Message ----- From: John Hidey (The C# Junkie) To: wix-users@lists.sourceforge.net ; wix-devs@lists.sourceforge.net Sent: Thursday, August 24, 2006 9:55 AM Subject: [WiX-users] Stop IIS on uninstall All How to I ensure that IIS gets stopped on and uninstall. I'm installing a site (web service) and also a windows service. The windows service uses the web service that I installed and the windows service is started on install. When uninstalling, the web services bin directory and its contents are left behind. If I manually stop IIS and then uninstall everything is fine. Can I have the uninstall process stop IIS during uninstalled and if so how do I go about this. Thanks in advance everyone. John ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users