Page 1 of 1

Refreshing environment variables.

Posted: Mon Oct 25, 2010 9:37 am
by wickster05
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

Re: Refreshing environment variables.

Posted: Mon Oct 25, 2010 3:49 pm
by mills
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].