Somebody else on the list hit this exact problem last week too... Copy paste reply:
This is a known problem, see bug #1067343: http://sourceforge.net/tracker/index.php?func=detail&aid=1067343&group_id=105970&atid=642714 The workaround is to set the property SKIPCONFIGUREIIS to "1" when you are not installing any components that require IIS configuration. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Roberts Sent: Thursday, March 29, 2007 2:29 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Conditional deployment of a virtual directory Hi there, I'm newly acquainted with WiX, and was hoping someone out there may be able to help me with a problem I'm trying to solve relating to conditional deployment of a virtual directory to an IIS server. I would like to deploy the web service as part of a feature, but I think my Fragment-level "WebSite" definition is causing the error below (due to initiating the ConfigureIIs custom action) on clients that don't have IIS and on which I don't select the webservice feature. "Cannot connect to Internet Information Server (-214722164)" The structure of my installer is such that two configurations are supported: Client Mode: No IIS required, and no web service deployed Server Mode: IIS required, web service deployed I came across this post: http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg00683.html where Rob suggests "In WiX v3, it is possible to override the condition on actions without rebuilding (the feature you need)." The high-level structure of the relevant (as I understand it) sections of my wix solution is included below: [MainFile.wxs] <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product ... <Feature Id="TopFeature" Level="1" .. <FeatureRef Id="ServerComponents" .. > <ComponentGroupRef Id="WebServiceComponents"/> </FeatureRef> </Feature> </Product> </Wix> [SeparateFile.wxs] <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"> <Fragment> <ComponentGroup Id="WebServiceComponents"> ... </ComponentGroup> <iis:WebSite Id="MyWebSite" Description="Default Web Site"> <iis:WebAddress Id="DefaultWebSiteAddress" Port="80" /> </iis:WebSite> <iis:WebDirProperties Id="WebsiteDirProps".. /> <DirectoryRef Id="DeployDir"> <Component Id="WebServiceVirtualDir" Guid="{1A721E3E-D370-11DB-94DF-A8D455D89593}" KeyPath="yes"> <iis:WebVirtualDir Id="MyVirtualDirectory" Alias="SomeWebService" Directory="DeployDir" DirProperties="WebsiteDirProps" WebSite="MyWebSite"> <iis:WebApplication Id="MyApplication" Buffer="yes" ParentPaths="yes" AllowSessions="yes" DefaultScript="VBScript" ScriptTimeout="90" SessionTimeout="20" ClientDebugging="yes" ServerDebugging="yes" Name="MyApplication" /> </iis:WebVirtualDir> <CreateFolder /> </Component> </DirectoryRef> </Fragment> </Wix> If anyone could assist I'd appreciate it. I'm using version 3.0.2512.0 of the Wix tools. Thanks, Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users