You  probably want to use the File/@Source attribute. This tells Light where to 
pick up your file when it's building the MSI. The file will still get installed 
to c:\Program Files\RRHome\RRFoo because your component is nested under that 
directory structure.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken MacDonald
Sent: Thursday, March 20, 2008 11:07 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Location of SourceDir?

Hi all,
I'm real new at  MSI and WiX. I've created a Votive/ Visual Studio
project 'wixfoo' - currently there's only a single file in the WiX,
macdok.foo,
and it should be installed on a target system at c:\program files\RR
Landscapes\RRfoo\macdok.foo. I've tried placing the .foo file in
a ..\RR Landscapes\RRfoo\ subdirectory in a variety of places including

c:\auth\wixfoo\RR Landscapes\RRfoo\
c:\auth\wixfoo\wixfoo\RR Landscapes\RRfoo\
c:\auth\wixfoo\wixfoo\bin\RR Landscapes\RRfoo\
c:\auth\wixfoo\wixfoo\bin\Debug\RR Landscapes\RRfoo\

but always get the error:

C:\auth\wixfoo\wixfoo\Product.wxs(14) : error LGHT0100 : File of type
'File' with name 'SourceDir\RR Landscapes\RRfoo\macdok.foo' could not
be found.

I've looked at the documentation (the "getting started" page is
blank?!?) and the online tutorial, and all I found that seemed
relevant
was that the source directory tree should be the same as the target -
does this mean I must put my .foo file in my build system's
c:\Program Files\... etc? Any clues as to how to do this appreciated.
Ken

Here's most of my .wxs:
=============================================================================================================
    <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="RRhome" LongName="RR Landscapes" Name="RRhome">
          <Directory Id="INSTALLLOCATION" Name="RRfoo">

            <Component Id="SoftFooWare"
Guid="SOMEGUID-7bb3-4ab2-aa54-da09c5e8be4f">
              <File Id="macdok.foo" Name="macdok.foo" Vital="yes"
KeyPath="yes" DiskId="1" />
            </Component>

          </Directory>
        </Directory>
      </Directory>
    </Directory>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to