Our installer requires a 3rd party environment variable to be deleted. We call a .Net program that deletes this variable "X" and returns to the installer script. I repull environment variables with the "Get All Environment Variables" command, however the variable "X" is stil cached and pulled in. Unfortunately, this causes some errors with various calls we make later in the installer. So my question is how does one refresh the Environment Variables, so we no longer pull the variable "X" in. Is there a way to pull all variables, except "X" and store them in a variable?
Thanks so much for your help,
-Tom
Refreshing environment variables.
Re: Refreshing environment variables.
It looks like you've come across a bug. I've notified our developers.
One work-around would be to create a custom IA setup that does nothing but reads the environment variable list and writes it to file. After the call to that "setup" is made, you can then read the list in from that file.
Also, if you're only dealing with deletion, if your custom app returns a success, then it might be easier to just replace the [line with the] variable you deleted with [blank].
One work-around would be to create a custom IA setup that does nothing but reads the environment variable list and writes it to file. After the call to that "setup" is made, you can then read the list in from that file.
Also, if you're only dealing with deletion, if your custom app returns a success, then it might be easier to just replace the [line with the] variable you deleted with [blank].
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

