Re: [WiX-users] How to update PATH environment variable in WiX?

2007-08-01 Thread Tony Hoyle
Brent B. Powers wrote:
 Werner, Harvey D wrote:
 I need to update the PATH environment variable to prepend the value of
 [TARGETDIR]\bin during our product installation.
   
 You need
 
 Action='set'
 
 below, and I believe you have to do a CA to get/manipulate the value to set.
 
 Am I the only one who absolutely hates it when a program plays with my 
 path? Drives me nuts. It's MY path.

It's valid for command line apps which may be run from anywhere, but 
anything that runs from the GUI of course has no business using PATH at 
all - it should be setting AppPath if it needs paths at all.

IMO new paths should *always* go at the end as well, not the start.  I 
hate apps that automatically think they're the most important thing on 
the system (there's a security issue there too - the system should 
always be first in the path to avoid rogue applications redefining 
system DLLs).

Tony

-
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] How to update PATH environment variable in WiX?

2007-07-31 Thread Rob Hamflett
I think you're just missing [EMAIL PROTECTED]set.

Rob

Werner, Harvey D wrote:
 I need to update the PATH environment variable to prepend the value of
 [TARGETDIR]\bin during our product installation.
 
 How is this done in WiX? I tried using the Environment element, but it
 does not change PATH at all.
 
 Environment
   Id=Environment
   Name=PATH
   Part=first
   System=yes
   Value=[TARGETDIR]\bin /
 
 Obviously, I do not want to delete PATH during uninstall, but just
 remove what was added.
 


-
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] How to update PATH environment variable in WiX?

2007-07-31 Thread Brent B. Powers
Werner, Harvey D wrote:
 I need to update the PATH environment variable to prepend the value of
 [TARGETDIR]\bin during our product installation.
   
You need

Action='set'

below, and I believe you have to do a CA to get/manipulate the value to set.

Am I the only one who absolutely hates it when a program plays with my 
path? Drives me nuts. It's MY path.

 How is this done in WiX? I tried using the Environment element, but it
 does not change PATH at all.

 Environment
   Id=Environment
   Name=PATH
   Part=first
   System=yes
   Value=[TARGETDIR]\bin /

 Obviously, I do not want to delete PATH during uninstall, but just
 remove what was added.

   


-
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