jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Registry values overwritten when option selected to not overwrite if already there

We are experiencing a problem where one application is running and is reliant on the registry at HKLM...Directories pointing at the C: Drive and then we run the installer using the msi produced by the attached file. This overwrites the directory entries even though I have clicked 'Create if absent (at install)'.
Is this a bug?

Regards,
John
Attachments
Rationalisation64.aip
(179.9 KiB) Downloaded 186 times
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Registry values overwritten when option selected to not overwrite if already there

This is the log where Rationalisation was set to use E:\ in the registry, but after installation, the registry has been updated to use C:\
Attachments
MSI12d4a.LOG
(747.38 KiB) Downloaded 208 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Registry values overwritten when option selected to not overwrite if already there

Hi John,

Please note that in order to preserve the content of a registry key, you need to use the "Preserve key content" option from the "Operations" tab of that key.

The "Create (if absent) at install" option makes sense only if the registry key does not contain a value. If this option is selected the registry key will be created at install time if it is not present. However, the the registry key already contains values, it will be always created at install time.

Let me know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Registry values overwritten when option selected to not overwrite if already there

Hi,

If I use this option and the HKLM value is not there, will it create the new one as it has nothing to preserve?

i.e. Preserve if already there, create if it isn't.


Regards,
John
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Registry values overwritten when option selected to not overwrite if already there

Hi John,

Yes, if the key does not exist on the target machine, it will be created with the content from your package.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Registry values overwritten when option selected to not overwrite if already there

Hi,

Thank you that has solved our problem.

We have been using AI for years and never experienced this until now. I expect some things have changed over the years. We are still using 23.1 but I think the latest version is 24.0. The previous version we used was 16.8.

Thanks,
John
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Registry values overwritten when option selected to not overwrite if already there

Hi John,

You're welcome.

There's been no major change done here over the years, but I'm glad your problem is solved now.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”