From: the_red_baro...@hotmail.com To: wix-users@lists.sourceforge.net Subject: wix3.5 - Set directory name via ui dialog property Date: Tue, 31 Jan 2012 02:51:28 +0000
Hi, I'm quite new to WiX and am currently trying to author a package with a series of Features. Part of this is the creation of a folder structure. I am trying to create a folder structure of the form MYINSTALLDIR\Folder\[dnsname]\MyWebSite\wwwroot for use in an IIS website. I am using the WIXUI_INSTALLDIR property to set MYINSTALLDIR successfully. I am trying to set the [dnsname] via a custom UI dialog (works fine). What I am unable to do however, is to use the data retrieved from the UI dialog to name that directory. The properties etc set during the UI phase work perfectly within the IIS config, but not for the creation of the directory under the folder structure. eg: <!-- IIS Properties --> <Property Id='MYIISDNSNAME'>DomainFolderValue</Property> <Property Id='IISIDENTITY'>NetworkService</Property> <SetProperty Id="DomainFolder" Value="[MYIISDNSNAME]" Before="CostFinalize"/> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='MYINSTALLDIR' Name="DirectoryToInstall"> <Directory Id="Websites" Name="Websites"> <Directory Id="DomainFolder" Name="[MYIISDNSNAME]"> <Directory Id="MyWebSiteDir" Name="MyWebSite"> . . . <Component Id="MyIISWebSite" Guid="##############################" KeyPath="yes"> <iis:WebSite Id="MyWebSite" Description="[MYIISDNSNAME]" AutoStart="yes" StartOnInstall="yes" Directory="wwwrootIdent" xmlns="http://schemas.microsoft.com/wix/IIsExtension"> <WebAddress Id="_80" Port="80" Header="[MYIISDNSNAME]" /> </iis:WebSite> </Component> The IIS section works fine. How do I use the property set within the UI to create a subfolder under my directory tree? With my current XML I simply get a message that says "Could not access network location DomainFolderValue" during the costing phase as per the Before condition. I have also tried not using SetProperty and end up with a folder called [MYIISDNSNAME] as I understand I am not referring to the value of the Property. I have been working on this for a while now and getting nowhere. Can someone fill in the gaps in my understanding? Thanks. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users