Registry entries tied to a shared-counted file - Advanced Installer Community
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Registry entries tied to a shared-counted file

AI version: 11.3
Kind: Mixed 32/64 Project, Multilingual
Type: Enterprise
Hello Forum,

I need again your help. I have two different products that install the same file and some registry entries. The file needs those entries for working well. If both products are installed on the same machine, then the shared counter of the file is incremented, so that by uninstall of one of them the file still stays installed.

The problem are the registry entries... they will be always removed, even if the file doesn't. How can I achieve something like the shared-counter file procedure with registry entries? I want to avoid the registry entries to be removed until the file shared-counter goes to 0 and the file is deleted.

Thanks in advance for your help,
Keneth
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Registry entries tied to a shared-counted file

Hi Keneth,

In order to achieve what you want, you can go in the Organization page of your projects and set the same GUID number for similar components of the registry key that you want to share between the two packages.

For example, if in your two projects you have two similar registry keys ("RegProj1" and "RegProj2"), you should set the same GUID number for the components related to these registry keys.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Registry entries tied to a shared-counted file

Hello Eusebiu,

thanks for the help! I have another question, before I start changing the project. As I mentioned, my project is a mixed 32/64 project. Doesn't this mean, that the components will have different GUID according with the Platform?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Registry entries tied to a shared-counted file

Hi Keneth,

In a mixed package, you need to duplicate the component related to a registry entry and set the "64-bit Component" flag only for one of them. Also, set the "VersionNT64" condition for the 64-bit component and "NOT VersionNT64 AND VersionNT" for the 32-bit component.

It is not necessary to have the same GUID for the 64-bit component and the 32-bit component from a project, but you will still need to have the same GUID for the components that are similar in the two projects, as I explained in my previous post.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Registry entries tied to a shared-counted file

Hello Eusebiu,

I have just tested (x64) using the same GUID and it works as expected. Now I have to do the changes for component duplication but I'm sure it will work as well.

Thanks a lot for your great support!

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

Re: Registry entries tied to a shared-counted file

You're welcome Keneth. Just let me know if any problem appears.

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

Return to “Common Problems”