VMware Cloud Community
brettparkhurst
Enthusiast
Enthusiast
Jump to solution

Save & restore variables between upgrades?

Is there a way that you can have the installation save the user input in custom screens so that when they get upgrades of the same installation they don't have to enter it all again? 

Our use case is that the user is prompted for several things during the initial installation that we use to configure our product.  On upgrades, we don't want them to have to enter it again and just be able click through the screens with the pre-loaded variables from their first installation.

Reply
0 Kudos
1 Solution

Accepted Solutions
brettparkhurst
Enthusiast
Enthusiast
Jump to solution

I implemented this using a properties file.  I then read and write it in the Pre Show Page Actions and Post Show Page Actions on each variable.

View solution in original post

Reply
0 Kudos
2 Replies
michieldhont_
Hot Shot
Hot Shot
Jump to solution

Hi @brettparkhurst ,

There is no way to persist variables for upgrade installers, I recommend using <iniFileSet> or <propertiesFileSet> to store those variables and retrieve them using <iniFileGet> or <propertiesFileGet>. You can read more information about those actions in the following section of our user guide:

https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#_get_ini_file_property
https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#_set_ini_file_property
https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#_get_property_file_val...
https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#_write_property_file_v...e

Regards,

Michiel

 

 

Reply
0 Kudos
brettparkhurst
Enthusiast
Enthusiast
Jump to solution

I implemented this using a properties file.  I then read and write it in the Pre Show Page Actions and Post Show Page Actions on each variable.

Reply
0 Kudos