I'm testing an installer I built that supports installing multiple instances of my application.
I am using persistent properties so that the install parameters the user fills out during install are persisted to the registry.
However, the install parameters are being persisted to HKLM\Software\Wow6432Node\CompanyName\{UpgradeCode}
This is obviously problematic as every time the installer is run for a new instance, the values entered for the previous installer are populated by default.
If I install Instance #0 and then Instance #1 and then try to upgrade Instance #0, the install parameters are the Instance #0 ones.
I expected the persistent install parameters to be saved to the registry under HKLM\Software\Wow642Node\CompanyName\ProductNameInstanceNumber. That is where the path to that instance's install and that instance's version is persisted.
Please help me understand what I'm doing wrong. As I've described above, persistent properties are useless for multiple instances.
I'm considering switching off persistent properties and using a whole bunch of custom actions to add registry keys like InstallParameter1Instance0, InstallParameter1Instance1 that I then read in at the beginning and use based on the instance id, but that will be clunky and a ton of work.
I looked into Instance Properties, but that seemed like a dead end as they are not put into the registy.
Any other options? Or is this type of functionality just not supported?