AFAIK, DestinationDirectory is an identifier in the Directory table and
DestinationProperty is a name of the property, as stated in CopyFile uses
DuplicateFile/MoveFile table.
Either case, there should be no square brackets.
So declare the directory or the property - I would suggest the Directory and
use the identifier.
Here is an example.
<Directory Id="ProgramFilesFolder">
<Directory Id="TestFolder" Name="Test">
<Directory Id="TestConfigFolder" Name="Config"/>
</Directory>
</Directory>
<File Id="USER_XML" Name="user.xml" LongName="user.xml">
<CopyFile Id="CopyUserXml" DestinationDirectory="TestConfigFolder" />
</File>
Chesong Lee
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frédéric Viollet
Sent: Tuesday, September 18, 2007 12:23 AM
To: [email protected]
Subject: Re: [WiX-users] Silent install won't copy in files
I haven't tried this out, maybe other contributors will correct me. But
I think you can use any property between square brackets in
DestinationDirectory. Square brackets make the property to be evaluated.
The difference is between DestinationProperty and DestinationDirectory
would be:
DestinationProperty=MyProperty
DestinationDirectory=[MyProperty]
Maybe I'm wrong, but I understand that DestinationProperty waits for a
single property to contain the whole destination path.
Have you tried using DestinationDirectory?
Mike Menaker a écrit :
> I don't think I can use [ProgramFilesFolder] with DestinationDirectory
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frédéric
> Viollet
> Sent: Monday, September 17, 2007 12:14 AM
> To: [email protected]
> Subject: Re: [WiX-users] Silent install won't copy in files
>
> Mike Menaker a écrit :
>
>> Hi,
>>
>> I'm having a problem with a silent install.
>>
>> I have a component that copies 2 files and writes to the registry
>> however it isn't copying the 3 files correctly (yet writing the
>> registry correctly).
>>
>> This is my component.
>>
>> <Component Id="SpeechConfig" DiskId="1"
>> Guid="49861A79-A034-4e15-BA38-783D2FCC4D90">
>>
>> <File Id="TEST_cfg" Name="TEST_1.CFG" LongName="Test.cfg">
>>
>> <CopyFile Id="CopyTestCfg"
>> DestinationProperty="[ProgramFilesFolder]Test\Config\" />
>>
>> </File>
>>
>> <File Id="USER_XML" Name="user.xml" LongName="user.xml">
>>
>> <CopyFile Id="CopyUserXml"
>> DestinationProperty="[ProgramFilesFolder]Test\Config\" />
>>
>> </File>
>>
>> <Registry Id="TEST_SETREG_ADD" Root="HKLM" Key="SOFTWARE\FLEXlm
>> License Manager\TestLicensingService" Name='License' Action='write'
>>
>> Type='string'
>> Value='[ProgramFilesFolder]Test\license_manager\license\test.lic' />
>>
>> </Component>
>>
>> Any ideas why it isn't copying in the files correctly?
>>
>> Thanks,
>>
>> Mike
>>
>>
>>
> You are using the DestinationProperty attribute in the CopyFile element.
> Try using DestinationDirectory instead.
>
> Fred
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users