markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Make sure Client Profile is NOT installed

Hi,

Due to a limitation in a third-party library, I need to ensure that users installing my software do not have the Client Profile edition of the .NET Framework installed.

Specifically, we support any version of .NET Framework greater than v2.0 (SP2) as long as it's the "full edition".

Is there a straightforward way to represent this logic as a prerequisite within Advanced Installer?

Regards,

Mark R.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Make sure Client Profile is NOT installed

Hello Mark,

In order to achieve that you can search through the registry in order to see if the full version of .Net Framework is installed on the target computer. You can go in the Search page and use the New Extended Search >> Registry key exists toolbar button to define a search. So, the search will be successful if the specified registry key exists. That means the public property that is associated with the search operation(by default it is RESULT_PROPERTY ) will be 1 if the registry key entrance exist.

Then you can go in the Launch Conditions page and in the Custom Launch Condition tab create a custom launch condition using the result of the search. So, the installation will run only if the custom launch condition is True. Otherwise, the launch condition description will be showed to the user. Also you can take a look on the Set launch conditions article which may be useful.

Please note that in the Software Launch Condition tab you can enable .Net Framework 2.0 option. So, conditions that must be fulfilled in order to launch the installation package.
Also you can take a look on the .NET Framework Client Profile article which may be useful.

If you need any help, please let us know.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”