Re: [WiX-users] Problems with copy file

2007-10-26 Thread Mike Menaker
Even with all this I'm not really sure what I need to do to make this
work.

I have multiple wix files that need to know PATH/temp.

But the user only enters PATH.

Not sure how I'm going to make a Dir element out of PATH.

-Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard
Sent: Saturday, October 20, 2007 8:29 AM
To: WiX Users
Subject: Re: [WiX-users] Problems with copy file


In article [EMAIL PROTECTED],
Jeremy Farrell [EMAIL PROTECTED]  writes:

  In article 
  [EMAIL PROTECTED],
  Jeremy Farrell [EMAIL PROTECTED]  writes:
  
   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.
  
  Its not a property he needs to create, its a row in the Directory
  table (primary keys in the directory table are also mirrored as
  properties containing the resolved path, but just creating a
property
  is not sufficient).
 
 That means the WiX help file is as wrong as it could be about
 this then, despite being clear and explicit - and how come
 
 DestinationProperty=PATH
 
 works? Are you sure you aren't thinking of DestinationDirectory
 rather than DestinationProperty?

Windows Installer uses a property to identify the destination.  Every
entry in the Directory table gets a property to go with it.  So by
defining an entry in the Directory table you also get a property.  You
could just use a property separate from the Directory table as well.
But either way you can't specy DestinationProperty or
DestinationDirectory as formatted text that will resolve to the
desired path.
-- 
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


Re: [WiX-users] Problems with copy file

2007-10-20 Thread Richard

In article [EMAIL PROTECTED],
Jeremy Farrell [EMAIL PROTECTED]  writes:

  In article 
  [EMAIL PROTECTED],
  Jeremy Farrell [EMAIL PROTECTED]  writes:
  
   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.
  
  Its not a property he needs to create, its a row in the Directory
  table (primary keys in the directory table are also mirrored as
  properties containing the resolved path, but just creating a property
  is not sufficient).
 
 That means the WiX help file is as wrong as it could be about
 this then, despite being clear and explicit - and how come
 
 DestinationProperty=PATH
 
 works? Are you sure you aren't thinking of DestinationDirectory
 rather than DestinationProperty?

Windows Installer uses a property to identify the destination.  Every
entry in the Directory table gets a property to go with it.  So by
defining an entry in the Directory table you also get a property.  You
could just use a property separate from the Directory table as well.
But either way you can't specy DestinationProperty or
DestinationDirectory as formatted text that will resolve to the
desired path.
-- 
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


[WiX-users] Problems with copy file

2007-10-19 Thread Mike Menaker
Hi, 

I can't get copyfile to copy a file.

 

Here is the element I use (PATH is a property set earlier)

 

File Id=FILE1 Name=FILE1 LongName=MovieSearch.gram
Source=$(var.SOURCEPATH)\ \

CopyFile Id=CopyFile DestinationName= FILE1
DestinationLongName=file.txt DestinationProperty=[PATH]\dir\ /

/File

 

If I use DestinationProperty=PATH it works.

 

I have also tried DestinationProperty=PATH\dir\

 

 

What am I doing wrong?

 

Thanks,

Mike

-
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


Re: [WiX-users] Problems with copy file

2007-10-19 Thread Mike Menaker
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]
m,
Mike Menaker [EMAIL PROTECTED]  writes:

 File Id=3DFILE1 Name=3DFILE1 LongName=3DMovieSearch.gram
 Source=3D$(var.SOURCEPATH)\ \
 CopyFile Id=3DCopyFile DestinationName=3D FILE1
 DestinationLongName=3Dfile.txt DestinationProperty=3D[PATH]\dir\
/
 /File   =20
 
 If I use DestinationProperty=3DPATH it works.
 
 I have also tried DestinationProperty=3DPATH\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


Re: [WiX-users] Problems with copy file

2007-10-19 Thread Richard

In article [EMAIL PROTECTED],
Mike Menaker [EMAIL PROTECTED]  writes:

 How would I do this?
 
 Path is set by the user like this from the UI:
 
 Control Id=EditPath Type=Edit X=21 Y=64 Width=237 Height=17
 
   Property=PATH
 
 It seems like I would just keep running into the problem of combining
 the property with a string.

Add a Directory element to define a directory.  The associated
property will be populated with the path to the directory.  When the
user edits the property, it will change the location of the directory
as used by the install.
-- 
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


Re: [WiX-users] Problems with copy file

2007-10-19 Thread Richard

In article [EMAIL PROTECTED],
Jeremy Farrell [EMAIL PROTECTED]  writes:

 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 cont
ains a pathname. You need to create a property which contains a string giving t
he required path, and give the name of that property to DestinationProperty.

Its not a property he needs to create, its a row in the Directory
table (primary keys in the directory table are also mirrored as
properties containing the resolved path, but just creating a property
is not sufficient).

Create a row in the Directory table by inserting a Directory
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


Re: [WiX-users] Problems with copy file

2007-10-19 Thread Mike Menaker
How would I do this?

Path is set by the user like this from the UI:

Control Id=EditPath Type=Edit X=21 Y=64 Width=237 Height=17

Property=PATH

It seems like I would just keep running into the problem of combining
the property with a string.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeremy
Farrell
Sent: Friday, October 19, 2007 3:25 PM
To: WiX Users
Subject: Re: [WiX-users] Problems with copy file

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=3DFILE1 Name=3DFILE1 LongName=3DMovieSearch.gram
  Source=3D$(var.SOURCEPATH)\ \
  CopyFile Id=3DCopyFile DestinationName=3D FILE1
  DestinationLongName=3Dfile.txt DestinationProperty=3D[PATH]\dir\
 /
  /File   =20
  
  If I use DestinationProperty=3DPATH it works.
  
  I have also tried DestinationProperty=3DPATH\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

-
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