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: wix-users@lists.sourceforge.net
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


begin:vcard
fn;quoted-printable:Fr=C3=A9d=C3=A9ric Viollet
n;quoted-printable:Viollet;Fr=C3=A9d=C3=A9ric
org:Bull, Architect of an Open World (TM);Evidian S.A.
adr;quoted-printable:;;Rue Jean Jaur=C3=A8s;Les Clayes Sous Bois;;78340;France
email;internet:[EMAIL PROTECTED]
title:Software Engineer
tel;work:01 30 80 77 34
url:http://www.evidian.com - http://www.bull.com
version:2.1
end:vcard

-------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to