Hello again,

I am trying to check for the existence of an IIS 7 web site. The web site 
description is passed in to the MSI as a parameter. I want to cancel the 
installation if the web site does not already exist. Additionally, I want the 
uninstall to continue even if the web site cannot be found, however, if found, 
I need to run a custom action.

I have tried to create a condition based WebSite/@Id but I am not able to 
successfully check for the existence (or lack of) the website in the condition, 
any thoughts?

Example:
<!-- WEBSITE is passed in via a parameter on the command line -->
<iis:WebSite Id="IISWEBSITE" Description="[WEBSITE]" SiteId="*">
        <iis:WebAddress Id="IisWebAddress" Port="80"/>
</iis:WebSite>

<Condition Message="Website [WEBSITE] not found.">
        <![CDATA[IISWEBSITE]]>
</Condition>


Ryan Taylor
Office (207)-504-5294
rtay...@penbaysolutions.com
www.penbaysolutions.com



CONFIDENTIALITY NOTICE:
This e-mail message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
Any unauthorized review, use, disclosure or distribution is prohibited. If you 
are not the intended recipient, please do not read, disclose, reproduce, 
distribute, disseminate or otherwise use this transmission, but contact the 
sender by reply e-mail and destroy all copies of the message and its 
attachments.

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to