Persistent variables across versions.

Got a problem you cannot solve? Try here.
marmadoc
Posts: 4
Joined: Wed Aug 30, 2006 5:52 am

Persistent variables across versions.

Postby marmadoc » Thu Jan 18, 2007 4:47 am

Hi!

My question is on persistent variables. Here is the scenario:

I previously built a package and saved the selected component states in persistent variables.

I am now modifying the script to perform an upgrade. Before I get to the component selection dialog I set up the selected components based on my persistent variables. This works fine for maintenance mode in the original installer, but I also need to do this now for normal installation since it is an upgrade and I only want to upgrade installed components.

The problem is that the persistent variables are undefined when I try to use them. This is after I make sure that this is an upgrade. I also try to retrieve the persisted variables before the previously installed version is removed.

So, I'm thinking that the persisted variables created in the initial install, is not available to this upgrade package because it has a new revision code.

So my questions are:
1. Are persisted variables stored per unique Product Code and Revision Code?
2. If this (1) is the case, is there a way to reference persisted variables from other versions based on the Product and Revision Codes?

Thanks!

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

Postby MichaelNesmith » Fri Jan 19, 2007 2:08 pm

Try using the Save Feature Selections and Load Feature Selections commands.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 161 guests