Registry values not updated while Maintenance - Advanced Installer Community
thomas.trummer
Posts: 3
Joined: Thu Jun 06, 2024 7:13 pm

Registry values not updated while Maintenance

Hi,

I need the possibility to change settings by executing the installer again.
If I start the installer after initial installation and click "Add/Remove Features" I get my config dialogs shown.
With the config dialogs I can change Properties which where bound to registry values.
On the initial installation the property values will be written to the registry but while modifying the values will not be written to the registry.

I found one example which exactly does what I need but I didn't figure out what is different to my project.

I added the working aip file and the installation log and I also added the not working aip file and the log of this installation.
As you can see, the working log shows "RegAddValue" on line 1087 but the not working installer doesn't have and rows with "RegAddValue"?

Does anybody have an idea what I made wrong.

Thanks Thomas
Attachments
working.zip
(25.05 KiB) Downloaded 131 times
notworking.zip
(250.93 KiB) Downloaded 144 times
thomas.trummer
Posts: 3
Joined: Thu Jun 06, 2024 7:13 pm

Re: Registry values not updated while Maintenance

Here is a reduced version of the not working installer
Attachments
notworking.zip
(31.44 KiB) Downloaded 125 times
thomas.trummer
Posts: 3
Joined: Thu Jun 06, 2024 7:13 pm

Re: Registry values not updated while Maintenance

I found the difference between the two AIP files.
The difference is that the Add or Remove Features and Repair/Reinstall buttons contain a Reinstall one or more features event.

I don't know if this is correct and if I understand it correctly, but it seems that setting this event argument to "ALL" always updates the registry values ​​and JSON configuration files for all installed features, even if they were already installed.
Attachments
ReinstallOneOrMoreFeatures.png
ReinstallOneOrMoreFeatures.png (58.92 KiB) Viewed 2374 times
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Registry values not updated while Maintenance

Hello and welcome to our forums,

Thank you for your followup on this.

Indeed, this is the correct method. Windows Installer does not support modifying registry entries during Maintenance.

Basically, the components of the registry entries should be reinstalled.

Let us know if you have any questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”