quotesopk.blogg.se

Install directx
Install directx










The variable $DirectXSetupError is used to force NSIS to pause while the DirectX setup is running. In this example, $EXEDIR is used to point to the directory the NSIS installer is located, then a subfolder of "DirectX". Note: Change the ExecWait line to point to the path of DXSETUP.exe. SectionIn RO DetailPrint "Running DirectX Setup." ExecWait '"$EXEDIR\DirectX\DXSETUP.exe" /silent' $DirectXSetupError DetailPrint "Finished DirectX Setup" SectionEnd You can force on with "SectionIn RO", or leave out if you wish the user to have the option to run the DirectX install. If you use component install UI, DirectX will show up as an entry. This is incase DirectX fails, your software will be installed. The placement of the section could go anywhere, but it's highly recommended that DirectX be the last install section after everything else is complete. NSIS will run the section while installing. To make things easier on yourself, create a new Section for DirectX.

  • Close and continue with the install script.įirst, you will need to define a variable at the very beginning of your script:.
  • NSIS waits till the DirectX installer finishes.
  • install directx

    Launch the DirectX Installer on the source media.If you simply want to run the installer with only a fail/success status, this is the way to go. The easy way or use DirectSetup to interface with the DirectX install program directly. There are two ways to go about the install. If you lay out files in this structure, you can define the location of the DirectX installer files as: ~/setup.exe (Your final NSIS installer file.).While the contents can be named and places anywhere in relative to the final installer executable, this document will assume the following layout: This allows the DirectX setup to run and install without copying DirectX Setup files to the user system.

    install directx

    You will need include the full DirectX installation files on your final media and outside of the NSIS installer itself. To do this, you will need to run the file in a command line as follows, defining the export location in the /T parameter: When you get the file, you will need to extract the contents, rather than installing the runtimes. You can use any release, but it's best to get the latest runtime, even if your title doesn't explicitly require it. Obtain the Latest DirectX End-User Runtimes from Microsoft. Prerequisites Obtaining the DirectX Runtime Install 1.1 Obtaining the DirectX Runtime Install.












    Install directx