Conditionally Installing DirectX 11 - Advanced Installer Community
waldedg
Posts: 15
Joined: Fri Mar 27, 2015 6:42 pm

Conditionally Installing DirectX 11

I would like to install DirectX 11 with my application. I have tried to use the Launch Conditions>Software>DirectX with DirectX 11 chosen. but it thinks I have the latest loaded and does not inform the user that the correct version needs to be installed.
I have also tried to put the Web Installer in as a Prerequisite. This does install it "every time". Now I would like to do the install for DirectX only if it is missing or out of date.

Does anyone know what to look for (a file, registry key, etc...)?

Thanks.
Thanks, Doug
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Conditionally Installing DirectX 11

Hello,
I have also tried to put the Web Installer in as a Prerequisite. This does install it "every time".
Please note that a prerequisite will be installed based its install conditions defined in the Prerequisite Install Conditions Tab of the related Prerequisite. The Install Conditions section allows you to condition the prerequisite based on custom searches. You can create multiple searches for the same prerequisite. In order to test a condition you can use the [Test] button.
The Prerequisite Search Dialog allows you to add a new search to the installation conditions of a prerequisite or edit an existing one.

Also, be aware by the two options below the “Install Conditions” pane:
  • Install only if at least one condition is false - If this option is selected, at least one search must fail in order to install the prerequisite.
    Install only if all conditions are false - If this option is selected, all searches must fail in order to install the prerequisite.
So, the prerequisite software will be installed according to the enabled option which refers to the install condition that you have defined before.

If you application requires the Direct X Runtime XI, then you can add it from our predefined list of prerequisites. The predefined prerequisites have their install conditions defined.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
waldedg
Posts: 15
Joined: Fri Mar 27, 2015 6:42 pm

Re: Conditionally Installing DirectX 11

I have done the Launch Conditions>Software>DirectX and chosen DirectX 11. It does not recognize that the latest (or at least the version I need that comes from the Web Installer located here: https://www.microsoft.com/en-us/downloa ... aspx?id=35. And if it does detect that it is not installed it stops the installation.
What I want is to put DirectX in the Prerequisite area but be able to install it ONLY if the specific version or above is installed. What I need is: What to look for in the Install Conditions. How do I look for the correct version? Look in the Registry? Look for a specific file/version?
I was hoping someone else has come across this same issue.

Thanks for your help.

Doug
Thanks, Doug
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditionally Installing DirectX 11

Hello Doug,

First of all please note that the link you mentioned is for DirectX 9.0c (installs updates for DirectX 9.0c) and not for DirectX 11. So, this could be the reason why our "DirectX 11" launch condition is triggered even after you installed the linked DirectX version.

If you want to install DirectX 11 (only when it is not already installed) on target machines, then you can use our "DirectX 11.0 Runtime x64" and "DirectX 11.0 Runtime x86" predefined prerequisites. Also, to check what install conditions can be used for them as a detection criteria, please review the install conditions of our predefined DirectX prerequisites.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”