TheRocket
Posts: 32
Joined: Thu Jul 26, 2012 6:55 pm

Persistent properties versus Dynamic Instances

Hello!

I'm working with Advanced Installer 17.6 and also 20.3.2
I've been playing with persistent properties in a multi-instance aip package.
The instances are being generated dynamically (Generate instances at installation time)

You install the main instance and give the property a value of "Folder1".
You install a second instance and give the property a value of "Folder2".
You install a third instance and give the property a value of "Folder3".

According to my tests, the data captured in the property for the last instance (Folder3) is reused for the maintenance / upgrade of the main instance.
I would expect the main instance to remain with property value "Folder1" when upgrading.

According to the windows registry, the property is saved using the
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Your Company\[Upgrade Code]
which seems ignores the instance name \ isolation.

How should I save properties when working with instances, so the properties can be reused for repair / upgrades?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Persistent properties versus Dynamic Instances

Hello,

We might need to save the properties accordingly - e.g. identify them by a parameter specific only for each package, such as InstanceName as you mentioned.

We can then manually save the value of the property by creating an entry in the "Registry" page.

After doing so, we can create a search for each and then use a "Set property" predefined custom action to set the properties accordingly.

How to preserve application settings using registry values

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”