Emmanuel Derriey
Posts: 16
Joined: Tue Sep 03, 2013 3:28 pm

Problems with registry keys and content

Hi,

I encounter an issue with registry in an installation package.
What I want:
- I want to create a set of registry keys and registry values on first installation: it represents a default configuration for the installed software.
- I don't want these keys/values to be removed at uninstall
- I don't want these keys/values to be changed if exists (for example if I update the software with new installation version while my customer changed its configuration)

What I did:
- I created a set of Registry keys if Registry section: I checked "Create (if absent) at install", I unchecked "Delete (if present) at uninstall". In Operation property tab, I checked "Preserve key content" with condition = "true"
- in Organisation section, on each key value component, I checked "Permanent" and "Never overwrite"

My problem: on some computers (but not all ?!?), some keys and values are removed when I run a new version of installation package.
I use 9.6.1 version of AI, my package is a msi file.

Could you please let me know what is wrong with my method?

Thanks you very much for any help,

Best regards,

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

Re: Problems with registry keys and content

Hi Manu,
- I don't want these keys/values to be removed at uninstall
Do you want to keep these registry entries even if the application is completely removed from the machine (uninstalled from Control Panel)?
- I created a set of Registry keys if Registry section: I checked "Create (if absent) at install", I unchecked "Delete (if present) at uninstall".
Please keep in mind that these options are only necessary for a key that contains no value.
In Operation property tab, I checked "Preserve key content" with condition = "true"
If you want to keep the registry entries only on upgrade you can use the "OLDPRODUCTS" property as a condition. If you want to keep them when the application is completely uninstalled too, you can use the default condition which is "1".
- in Organisation section, on each key value component, I checked "Permanent" and "Never overwrite"
If you use the "Preserve key content" option, these options ("Permanent" and "Never overwrite") are not needed anymore.
My problem: on some computers (but not all ?!?), some keys and values are removed when I run a new version of installation package.
Can you please tell me which are the machines that the registry entries are removed from?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Emmanuel Derriey
Posts: 16
Joined: Tue Sep 03, 2013 3:28 pm

Re: Problems with registry keys and content

Eusebiu wrote:Hi Manu,
Hi again,
Thanks for your quick reply.
- I don't want these keys/values to be removed at uninstall
Do you want to keep these registry entries even if the application is completely removed from the machine (uninstalled from Control Panel)?
I want to keep them even on completely uninstallation, if possible.
At least I want to keep them on upgrade.
- I created a set of Registry keys if Registry section: I checked "Create (if absent) at install", I unchecked "Delete (if present) at uninstall".
Please keep in mind that these options are only necessary for a key that contains no value.
OK, thx for information.
In Operation property tab, I checked "Preserve key content" with condition = "true"
If you want to keep the registry entries only on upgrade you can use the "OLDPRODUCTS" property as a condition. If you want to keep them when the application is completely uninstalled too, you can use the default condition which is "1".
OK. "true" wasn't a good condition? I thought 1 and true was the same.
- in Organisation section, on each key value component, I checked "Permanent" and "Never overwrite"
If you use the "Preserve key content" option, these options ("Permanent" and "Never overwrite") are not needed anymore.
I tried lot's of things, that's why I checked everything I tought it can solde the problem.
My problem: on some computers (but not all ?!?), some keys and values are removed when I run a new version of installation package.
Can you please tell me which are the machines that the registry entries are removed from?
I have the problem on a Windows 8 x64 machine and on a windows server 2008 R2. But on another WS 2008 R2, it don't have the problem.
Note that the installation package is in 64 bits.

Best regards,
Eusebiu[/quote]

Best regards
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problems with registry keys and content

Hi,
I want to keep them even on completely uninstallation, if possible.
As I mentioned in my previous post, you can keep the registry entries on a complete uninstallation if you check the "Preserve key content" with condition "1", or you can check the "Permanent" flag for the related components.

Did you try these scenarios and none of them work on the machines you mentioned?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Emmanuel Derriey
Posts: 16
Joined: Tue Sep 03, 2013 3:28 pm

Re: Problems with registry keys and content

Eusebiu wrote:Hi,
I want to keep them even on completely uninstallation, if possible.
As I mentioned in my previous post, you can keep the registry entries on a complete uninstallation if you check the "Preserve key content" with condition "1", or you can check the "Permanent" flag for the related components.

Did you try these scenarios and none of them work on the machines you mentioned?

Best regards,
Eusebiu
Hi,

The first test I tried was to check "Permanent flag": it didn't work on these machines.
Then, I added "Perserve key content" to "true" (not 1): same thing.
Do you think it's worth to try with "1" instead "true"?
Do you have another idea to solde this problem?

Thx

Regards

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

Re: Problems with registry keys and content

Hi Manu,

I tested your scenario on a "Windows 8 64-bit" machine using the "Preserve key content" option with condition 1, but it worked well to me. It also worked with the "Permanent" flag set. Can you reproduce the behavior on multiple clean machines?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Emmanuel Derriey
Posts: 16
Joined: Tue Sep 03, 2013 3:28 pm

Re: Problems with registry keys and content

Eusebiu wrote:Hi Manu,

I tested your scenario on a "Windows 8 64-bit" machine using the "Preserve key content" option with condition 1, but it worked well to me. It also worked with the "Permanent" flag set. Can you reproduce the behavior on multiple clean machines?

Best regards,
Eusebiu
Hi again,

As I said, I can reproduce this behavior on 2 machines.
I will try with condition = "1" if it works (and let Permanent flag too).

Did you test with AI 9.6.1 too ?

I'm thinking about something. The product name is BluBridge; the registry key are like this:
HKLM/Software/
+ BluBridge
+ ORServeur
+ BluBridge
BluBridge = "c:\....." (String value)
Each BluBridge "node" have its own component (BluBridge, BluBridge_1, BluBridge_2).
Could it the cause of my problems?
The underline BluBridge is the key which disappears.

Thx

Regards

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

Re: Problems with registry keys and content

Hi,
Did you test with AI 9.6.1 too ?
Yes, I tested using Advanced Installer 9.6.1 and it works too.
Could it the cause of my problems?
I'm not sure if this is the cause of your problem. Can you please send us the .AIP (project file) and a verbose log of the uninstallation to support at advancedinstaller dot com so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Emmanuel Derriey
Posts: 16
Joined: Tue Sep 03, 2013 3:28 pm

Re: Problems with registry keys and content

Eusebiu wrote:Hi,
Did you test with AI 9.6.1 too ?
Yes, I tested using Advanced Installer 9.6.1 and it works too.
Could it the cause of my problems?
I'm not sure if this is the cause of your problem. Can you please send us the .AIP (project file) and a verbose log of the uninstallation to support at advancedinstaller dot com so we can investigate them?

Best regards,
Eusebiu
I think I found the problem. On some components, there was a condition "(not installed)" on them. I removed this condition and next install on a computer that had the problem was correct!!!
Do you think it can explain my problem? Why didn't I have it on some computers?

Thx

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

Re: Problems with registry keys and content

Hi Manu,

I'm not sure if the "(Not Installed)" condition could cause the problem. This condition says that the component will not be reinstalled in Maintenance mode (Repair or Modify).

Also, there is no reason for the condition to be set only on some computers. This behavior was not replicated on the machines I tested. For more details you can create a verbose log and check the information about the components with the problem.

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

Return to “Common Problems”