Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7026371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:06:29+00:00 2026-05-28T00:06:29+00:00

I didn’t find any tip about DirectX installation at Inno-Setup web site. So, is

  • 0

I didn’t find any tip about DirectX installation at Inno-Setup web site. So, is there any sample installation script? I know that I have to add to [Run] sction something like this:

Filename: "{src}\DirectX\DXSETUP.exe"; WorkingDir: "{src}\DirectX"; Parameters: "/silent"; Check: DirectX; Flags: waituntilterminated; BeforeInstall: DirectXProgress;

But how to include it into setup file (temp folder?), how to extract it, ect?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:06:30+00:00Added an answer on May 28, 2026 at 12:06 am

    To include it in the setup, you can install it to {tmp} and then [Run] it from there.

    The correct way to install this sort of requirement is to extract in code and call Exec() on it in the PrepareToInstall() event function:

    function PrepareToInstall(var NeedsRestart: Boolean): String;
    var
      InstallerResult: integer;
    begin
      //Check if .Net is available already
      if NeedsDirectX() then begin
        ExtractTemporaryFile('DXSETUP.exe');
        if Exec(ExpandConstant('{tmp}\DXSETUP.exe'), '', '', SW_SHOW, ewWaitUntilTerminated, InstallerResult) then begin
          case InstallerResult of
            0: begin
              //It installed successfully (Or already was), we can continue
            end;
            else begin
              //Some other error
              result := 'DirectX installation failed. Exit code ' + IntToStr(InstallerResult);
            end;
          end;
        end else begin
          result := 'DirectX installation failed. ' + SysErrorMessage(InstallerResult);
        end;
      end;
    end;
    

    The ISXKB has an article on how to detect the versions installed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Didn't find any from their website. I mostly just trying to see which one
I didn't find anything about parsing HTML in the XML::LibXML::Reader documentation. And I tried
I didn't find much data about the internals of PL/Scope. I'd like to use
I didn't manage to find any functionalities for minimizing/maximizing programatically. I want to minimize
I didn't find any info on searches when I looked this up. I've been
I didn't see any license information on top of a web page's source code.
I didn't find any documentation as to why XPath support was dropped from jQuery
I didn't see any similar questions asked on this topic, and I had to
Why didn't languages such as C end up being using for web dev? Surely
I didn't find a solution for this but I think it should be doable.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.