Then, assuming the documentation's correct, it needs to be set to a property which contains the required path as the doc says. In
DestinationProperty="PATH" which works, you've set it to the name of the property called PATH which contains a pathname. You need to create a property which contains a string giving the required path, and give the name of that property to DestinationProperty. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Mike Menaker > Sent: Friday, October 19, 2007 11:01 PM > To: Richard; WiX Users > Subject: Re: [WiX-users] Problems with copy file > > According to the Wix Documentation > > DestinationProperty String Set this value to a property > that will have a value that resolves to the full path of the > destination > directory. The property does not have to exist in the > installer database > at creation time; it could be created at installation time by a custom > action, on the command line, etc. This attribute cannot be > specified in > conjunction with DestinationDirectory. > > What do you mean add a Directory element. How would I do this > when all I > have is a path? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Richard > Sent: Friday, October 19, 2007 2:58 PM > To: WiX Users > Subject: Re: [WiX-users] Problems with copy file > > > In article > <[EMAIL PROTECTED] > ologies.co > m>, > "Mike Menaker" <[EMAIL PROTECTED]> writes: > > > <File Id=3D"FILE1" Name=3D"FILE1" LongName=3D"MovieSearch.gram" > > Source=3D"$(var.SOURCEPATH)\ \"> > > <CopyFile Id=3D"CopyFile" DestinationName=3D" FILE1" > > DestinationLongName=3D"file.txt" DestinationProperty=3D"[PATH]\dir\" > /> > > </File> =20 > > > > If I use DestinationProperty=3D"PATH" it works. > > > > I have also tried DestinationProperty=3D"PATH\dir\" > > > > What am I doing wrong? > > DestinationProperty must be the name of a row in your Directory table, > it isn't a formatted string that gives the location of the directory. > > So to fix your problem, add a Directory element that defines > [PATH]\dir and then reference this in your CopyFile element. > -- > "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for > download > <http://www.xmission.com/~legalize/book/download/index.html> > > Legalize Adulthood! <http://blogs.xmission.com/legalize/> > > -------------------------------------------------------------- > ---------- > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and > a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and > a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users