Refreshing environment variables.

Got a problem you cannot solve? Try here.
Post Reply
wickster05
Posts: 1
Joined: Mon Oct 25, 2010 9:33 am

Refreshing environment variables.

Post 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
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Refreshing environment variables.

Post 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].
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.
Post Reply