Install registry values based on it being not empty? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Install registry values based on it being not empty?

Hello,

In the installer, some registry entries are installed with the properties as values. Some times these properties may be blank. The installer must install only the registry entries that are not blank. How to do this?

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

Re: Install registry values based on it being not empty?

Hi,

In order to achieve this you can follow the steps below:
- select a registry entry and press the "F8" keyboard button to be redirected to its related component from the "Organization" page
- in the "Condition" field from the right pane add the appropriate condition using the property related to that registry entry (i.e. MY_PROP)

Please keep in mind that if the component contains other resources besides the registry entry, all those resources will be installed only if the condition is true. In this case you will maybe want to move them in other components.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Install registry values based on it being not empty?

Well I used the following condition VersionNT64 AND MY_PROP. The registry entry only needs to get installed only in 64bit computers and be not empty. It did not work?
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install registry values based on it being not empty?

Hi,

The condition you used is correct. Didn't it work for you? Please make sure that your property is, indeed, empty when you want that registry entry not to be installed.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Install registry values based on it being not empty?

I checked. The property is empty. Still it did not work? :!:
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install registry values based on it being not empty?

Please note that on 64-bit machines the registry entries are automatically added under the "Wow6432Node" key. You can read more details in the "Win 8 Registry Key Written to Wrong Location" thread.

Can you check and see if this the case for you, too? If not, can you please send me the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Install registry values based on it being not empty?

Well, I am installing registry entries at 32bit location in 64bit computers using this method: http://www.advancedinstaller.com/user-g ... istry.html

Anyway I have sent you the AIP file and the verbose log to your email as requested.
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install registry values based on it being not empty?

Hi,

I tested the project that you sent and it worked as expected for me. If the properties used as condition for the registry entries are not empty, those registry entries are installed. Can you reproduce the problem on multiple clean machines?

I noticed that each of your properties is duplicated (i.e. BUTTONTEXT and BUTTONTEXT_1), but you only use those that contains the "_1" characters as condition for both 32-bit and 64-bit components in the "Organization" page. Is this intended?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Install registry values based on it being not empty?

The BUTTONTEXT property is there so the user could pass it from command-line like this BUTTONTEXT="info". Based on few VbScript code it passes the result to the BUTTONTEXT_1 property. If it is empty then it will not create the registry entry. Anyway I'll try on clean computer.
K
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Install registry values based on it being not empty?

It seems the issue was with Advanced Installer version 13. I updated it to the latest version 13.2.1 and the registry is not creating empty values now. Thanks for your help. :D
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install registry values based on it being not empty?

You're welcome. I'm glad you got this working.

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

Return to “Common Problems”