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="a"/>
      <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

Reply via email to