Only install exe if DotNetFramework is installed - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

filewave
Posts: 1
Joined: Fri Sep 26, 2008 12:36 am

Only install exe if DotNetFramework is installed

We have an installer that installs 2 exes. Is it possible to only install one of these exes if the DotNet Framwork is not installed? Or is it possible to stop the installation when the Dot Net Framework is not installed.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Only install exe if DotNetFramework is installed

Hi,
Is it possible to only install one of these exes if the DotNet Framwork is not installed?
Yes, this can be done by conditioning the component of the EXE you don't want to install:
- in the Search page create searches for all .NET Framework versions
- the searches can use these registry entries:

Code: Select all

HKLM\SOFTWARE\Microsoft\.NETFramework\policy\v1.0\3705
HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322\Install
HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\Install
HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0\Setup\InstallSuccess
HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5\Install
- in the Organization page select the component of the EXE
- use the properties of the searches in the "Condition" field on the Component Properties page
Or is it possible to stop the installation when the Dot Net Framework is not installed.
Yes, this can be done by using a .NET Framework predefined launch condition in the "Prerequisites" page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”