Thank you for this explanation.
So I see two other possibilities:
1) calling another .bat with 2 arguments
        - the value of my env variable
        - the other .bat file that needs the variable
  The script sets the variable itself and calls the other bat file
2) calling C:\WINNT\system32\cmd.exe /C call "setenv.cmd" & call "test.bat"

Did I overlook a smarter way?
Thank you!



-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Rob Hamflett
Gesendet: Dienstag, 4. Juli 2006 14:31
An: wix-users@lists.sourceforge.net
Betreff: Re: [WiX-users] environment variable available in executed program

I had a similar thing with a new env var not being found by the program I was 
launching.  I can only 
conclude the following:

When you launch your MSI, it's value for PATH does not include your new folder. 
 The changes get 
committed to the system, but your MSI still has it's original set of env vars.  
Since your batch 
file is run from the MSI, it has the same env vars, and so doesn't have the 
updated path.

Rob


Hecker, Thomas wrote:
> Hi,
>  
> 1) I'm adding my newly installed dir to the system path
> <Environment Id='env_entry' Name='PATH' Action='set' System='yes' 
> Part='last' Permanent='no'  Value='[INSTALLDIR]share\bin' />
>  
> 2)  scheduled CA runs a .bat file that uses an executable from the 
> share\bin dir added to path.
>  
> <CustomAction Id='LaunchFile' FileKey='test.bat' 
> ExeCommand='-d "[INSTALLDIR]" ' Return='asyncNoWait' />
>  
>  <InstallExecuteSequence>
>   <Custom Action='LaunchFile' After='InstallFinalize'>NOT Installed</Custom>
>  </InstallExecuteSequence>
>  
> 3) In the up-popping console window I can see that the executable was 
> not found. But after opening a new cmd-session, it is available. Why is 
> that not in the console wix opens for me? How do I achieve this?
>  
> Thank you very much,
> Thomas
> 
> 
> ------------------------------------------------------------------------
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to