The documentation for the WriteEnvironmentStrings action @
http://msdn2.microsoft.com/library/aa372883.aspx state that the variables
are not effective in the current installation. So when you launch your
console app from the installer process the environment variables are
inherited from the installer process which will not include your new
environment variables.

On Fri, Apr 3, 2009 at 3:21 AM, sandun css <sandun...@gmail.com> wrote:

> Hi,
>
> I set few environment variables from my wix installer, and refer them from
> a
> console application (C#), whcih gets launched at the end of my WiX
> installer. (I have a custom action to launch that console app, when the
> user
> presses the 'Finish' button of the msi)
>
> But my console application fails to read the env. variables set by the msi.
> When I look at the env varibles (from 'control panel -> System -> Advanced
> System settings -> Env variables'), I can see them as well.
>
> I am using Windows Server 2008.
>
> Can you please advice me on this?
>
> Thanks,
> Sandun
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to