Thanks for the reply. AFAIK, if I have a wix directory structure defined as:
. . <Directory Id = "Foo" Name="Foo"> < Directory Id = "Bar" Name="Bar"> . . On installation, I should see the directory structure ...\Foo\Bar\.... Since 'Bar' in this case is considered relative to 'Foo', why is it not in my case mentioned below? Putting a question in a different way: suppose I have to create a deep directory structure (let it look like a\B\c\D) during installation, where 'B' and 'D' directory names are supposed to come from public properties passed on during msiexec /i ...., what WiX am I supposed to use in such case? Thanks, Akshat -----Original Message----- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: Tuesday, May 03, 2011 8:26 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Wix : Specifying Installation Path and sub path as apublic property Firstly a verbose log would tell you exactly what the problem is. Secondly run the following command msiexec /i setup.msi INSTALLPATH="C:\Cool" SUBFOLDER="C:\Cool\Ice" and I suspect it'll work as you expect. SUBFOLDER refers to a Property being used as a Directory Identifier. It still needs to make sense as a directory path which "Ice" does not hence the error. Palbinder Sandher Software Deployment Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Akshat Sharma [mailto:aks...@microsoft.com] Sent: 03 May 2011 14:04 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix : Specifying Installation Path and sub path as apublic property Hi, I want to generate an .MSI which places a file, snow.txt, in the folder (INSTALLPATH)\(SUBFOLDER)\ where INSTALLPATH and SUBFOLDER are public properties that are defined from command line: msiexec /i setup.msi INSTALLPATH="C:\Cool" SUBFOLDER="Ice" I was trying to get my WiX working but it just won't work. This is the code that I'm using: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="96e70525-4cd1-4920-9c0b-91055c79a962" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="SetupProject1" UpgradeCode="868734f0-adb2-48d3-a99b-d72033e5cbb4"> <Package InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="INSTALLPATH"> <Directory Id ="SUBFOLDER" > <Component Id="snow" Guid="868734f0-adb2-48d3-a99b-d72033e4cbb5" > <File Id="snow" Source="snow.txt"/> </Component> </Directory> </Directory> <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --> <!-- <Component Id="ProductComponent" Guid="c15c12b0-5992-47a3-aa8b-77e669249d3a"> --> <!-- TODO: Insert files, registry keys, and other resources here. --> <!-- </Component> --> </Directory> <Feature Id="ProductFeature" Title="SetupProject1" Level="1"> <!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. --> <!-- <ComponentRef Id="ProductComponent" /> --> <!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. --> <ComponentRef Id="snow"/> <ComponentGroupRef Id="Product.Generated" /> </Feature> </Product> </Wix> When I run the generated .msi with from commandline as mentioned in the beginning of the mail, I get the following error: "Could not access network location Ice" Why is "Ice" not being treated as a RelativePath? Kindly suggest what is wrong here and what can I do to fix it. Thanks, Akshat ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users