How do you persist user-defined variables?

Got a problem you cannot solve? Try here.
slang
Posts: 21
Joined: Tue Mar 14, 2006 7:36 am

How do you persist user-defined variables?

Postby slang » Tue Mar 28, 2006 2:52 pm

Is there a way to persist a set of user-defined variables (other than writing to registry or external file) at first time install and reference those variables at a maintenance install? I thought IA persisted variables automatically but it appears only to do so for certain variables that it knows about.

Steve Lang
JeVal Software Engineering

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Mar 28, 2006 4:11 pm

Yes, this is true. Only known variables are persisted. If you think all variables should be persisted, this could be added as a feature request. In the past it was suggested that having all variables persisted at the end of the install might lead to strange situations when setup is started again (ex: if the reboot variable was true, setup would restart expecting to reboot again).
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

slang
Posts: 21
Joined: Tue Mar 14, 2006 7:36 am

Postby slang » Tue Mar 28, 2006 4:37 pm

Thanks Michael for the response.

Having all variables persisted would be a great help.

One can always initialize (or reinitialize) variables such as REBOOTNOW and REBOOTCOMPUTER so as to maintain proper program flow. Alternatively, the Set Variable command could have a persistance option that one would select on a per-variable basis.

When user-defined variables are not persisted, then it becomes very difficult to support new dialogs that solicit additional setup info. When setup is run in MAINTENANCE mode, user-defined variable context is lost, resulting in modify and repair installs not working properly. Presently, in order to maintain context, one has to write user-defined variables to an external file or a registry key at the end of a first-time install and then read them back in on a MAINTENANCE install. This is cumbersome and would be simplified if user-defined variables were persisted.

I cast my vote for adding user-defined variable persistance as a feature request.

Thanks for considering this issue.

Steve Lang
JeVal Software Engineering

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Mar 28, 2006 4:56 pm

That's a good suggestion! I think we'll see some action on that item.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

MikeFieger
Posts: 52
Joined: Thu Jan 26, 2006 9:09 am

Postby MikeFieger » Wed Mar 29, 2006 3:22 am

slang wrote:
"Alternatively, the Set Variable command could have a persistance option that one would select on a per-variable basis."

I think this is a very good idea. I also wanted to have such a feature as I could remove some registry entries then, which I only made for the installer to remember... :-)


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 243 guests