Inno Setup Directx Install

26.01.2020by
Inno setup guide

Directx Redist silent extract and install command line? Directx_mar2008_redist.exe /Q /C /T:C: TempFiles directx. It is part of an install using Inno Setup. DirectX 9.0c does in fact come with Windows 10. Starting with Windows XP Service Pack 2, the 'DirectX End-user Runtime' never installs DirectX on any version of Windows. The only way to update 'DirectX' is to install a Service Pack, a Windows Update, or move to a new version of Windows. See Not So Direct Setup for the full story here. Finally a week or two ago, the final straw broke - we discovered a new bug which meant we couldn't really use InstallShield for our installation (it can't handle DirectX as a redistributable). So we switched to Inno Setup. Jul 22, 2013  At the time, we used a product called PC-Install to make the installer; since then we’ve moved on to Inno Setup. Unfortunately, although our software was 32-bit, the installer produced by PC-Install was 16-bit, and some flavours of recent versions of Windows no longer run 16-bit software.

Inno Setup is a free installer for Windows programs. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability.

Key features:

  • Support for all versions of Windows in use today: Vista, XP, 2008, 2003, 2000, Me, 98, 95, and NT 4.0. (No service packs are required.)
  • Extensive support for installation of 64-bit applications on the 64-bit editions of Windows. Both the x64 and Itanium architectures are supported. (On the Itanium architecture, Service Pack 1 or later is required on Windows Server 2003 to install in 64-bit mode.)
  • Supports creation of a single EXE to install your program for easy online distribution. Disk spanning is also supported.
  • Standard Windows 2000/XP-style wizard interface.
  • Customizable setup types, e.g. Full, Minimal, Custom.
  • Complete uninstall capabilities.
  • Installation of files: Includes integrated support for 'deflate', bzip2, and 7-Zip LZMA file compression. The installer has the ability to compare file version info, replace in-use files, use shared file counting, register DLL/OCX's and type libraries, and install fonts.
  • Creation of shortcuts anywhere, including in the Start Menu and on the desktop.
  • Creation of registry and .INI entries.
  • Integrated Pascal scripting engine.
  • Support for multilingual installs.
  • Support for passworded and encrypted installs.
  • Silent install and uninstall.
  • Full source code is available (Borland Delphi 2.0-5.0).
25 Oct 2017CPOL
A modular InnoSetup script to download and install all available .NET Framework versions and much more

Introduction

This article contains a modular InnoSetup install script that downloads (if setup files don't exist locally) and installs various dependencies like .NET Framework 1.1/2.0/3.5/4.0/4.5/4.6/4.7 or C++ Redistributable 2005/2008/2010/2012/2013/2015/2017 on 32-bit and 64-bit Windows.

Details

The source code is written modular and is structured like this:

  • setup.iss - contains the basic setup where you include the modules (products) you need. They need to be included at the top like #include 'scriptsproductsdotnetfx11.iss' and then you only have to call their main function inside the [Code] part like dotnetfx11();
  • bin - contains the final output of the installer
  • src - contains the application files of your program
  • scripts
    • products.iss - contains the shared code for the product scripts
    • products.pas - contains the actual code of products.iss
    • isxdl - contains the downloader DLL for the setup (if there is something to download) and its language files (e.g. german.ini). This is the place where you can put your language files for the isxdl downloader in.
    • products - contains the scripts for products which are required by the application (e.g. .NET Framework 2.0)
      • directxruntime.iss - DirectX End-User Runtime
      • dotnetfx11.iss - .NET Framework 1.1
      • dotnetfx11lp.iss - .NET Framework 1.1 Language Pack
      • dotnetfx11sp1.iss - .NET Framework 1.1 + Service Pack 1
      • dotnetfx20.iss - .NET Framework 2.0
      • dotnetfx20lp.iss - .NET Framework 2.0 Language Pack
      • dotnetfx20sp1.iss - .NET Framework 2.0 + Service Pack 1
      • dotnetfx20sp1lp.iss - .NET Framework 2.0 Service Pack 1 Language Pack
      • dotnetfx20sp2.iss - .NET Framework 2.0 + Service Pack 2
      • dotnetfx20sp2lp.iss - .NET Framework 2.0 Service Pack 2 Language Pack
      • dotnetfx35.iss - .NET Framework 3.5
      • dotnetfx35lp.iss - .NET Framework 3.5 Language Pack
      • dotnetfx35sp1.iss - .NET Framework 3.5 + Service Pack 1
      • dotnetfx35sp1lp.iss - .NET Framework 3.5 Service Pack 1 Language Pack
      • dotnetfx40client.iss - .NET Framework 4.0 Client Profile
      • dotnetfx40full.iss - .NET Framework 4.0 Full
      • dotnetfx45.iss - .NET Framework 4.5.2
      • dotnetfx46.iss - .NET Framework 4.6.2
      • dotnetfx47.iss - .NET Framework 4.7
      • ie6.iss - Internet Explorer 6
      • iis.iss - Internet Information Services (just a check if it is installed)
      • jet4sp8.iss - Jet 4 + Service Pack 8
      • kb835732.iss - Security Update (KB835732) which is required by .NET Framework 2.0 Service Pack 1 on Windows 2000 Service Pack 4
      • mdac28.iss - Microsoft Data Access Components (MDAC) 2.8
      • msi20.iss - Windows Installer 2.0
      • msi31.iss - Windows Installer 3.1
      • msi45.iss - Windows Installer 4.5
      • sql2005express.iss - SQL Server 2005 Express + Service Pack 3
      • sql2008express.iss - SQL Server 2008 Express R2
      • sqlcompact35sp2.iss - SQL Server Compact 3.5 + Service Pack 2
      • vcredist2005.iss - Visual C++ 2005 Redistributable
      • vcredist2008.iss - Visual C++ 2008 Redistributable
      • vcredist2010.iss - Visual C++ 2010 Redistributable
      • vcredist2012.iss - Visual C++ 2012 Redistributable
      • vcredist2013.iss - Visual C++ 2013 Redistributable
      • vcredist2015.iss - Visual C++ 2015 Redistributable
      • vcredist2017.iss - Visual C++ 2017 Redistributable
      • wic.iss - Windows Imaging Component
      • winversion.iss - helper functions to determine the installed Windows version
      • fileversion.iss - helper functions to determine the version of a file
      • stringversion.iss - helper functions to correctly parse a version string
      • dotnetfxversion.iss - helper functions to determine the installed .NET Framework version including service packs
      • msiproduct.iss - helper functions to check for installed msi products

Most of the time you need to tweak the setup.issGame pesawat angkasa perang n73. because of different Windows version checks and inclusion of your required dependencies.

If a dependency (product) is not installed, the script checks if the product's setup exists inside the dependencies directory which is configurable in products.iss. By default it is: .MyProgramDependencies. If they don't exist there, it tries to download them (except for Windows service packs). This means a support for offline installing via CD or DVD is also possible. You can also package all dependency installers into the final setup.exe getting rid of external directories (for an example see directxruntime.iss).

Author by: David L. This book will be of interest to upper level undergraduates, postgraduates and academics in political science and Southeast Asian studies. Download ebook pendidikan pancasila kaelan. Grossman Languange: en Publisher by: Springer Science & Business Media Format Available: PDF, ePub, Mobi Total Read: 13 Total Download: 917 File Size: 50,5 Mb Description: Based on case studies of 11 societies in the world’s most dynamic region, this book signals a new direction of study at the intersection of citizenship education and the curriculum. Moreover, it provides the reader with an overview of Indonesia’s history, its political developments after the democratic opening, main improvements under the various presidents since Suharto’s fall, constitutional amendments and key reforms in human rights legislation.

The installation routine of the dependencies is automatic, and they run in quiet or semi quiet mode. Therefore no user interaction is needed (except for Internet Explorer 6). This setup script uses [CostumMessages] so that you can easily add multi-language support to your setup and easily configure settings (like the offline dependencies directory) without looking at the [Code] part.

Applications used for the script are:

Inno Setup Directx Install
  • Inno Setup - setup engine (version 5.5.9; unicode version needed for languages like Russian)
  • ISTool - extends Inno Setup but I just needed the isxdl.dll downloader (version 5.3.0)

Known Problems

Directx 11 Install

If dependencies are needed, the required free hard drive size shown before installation is incorrect.

Points of Interest

I wanted to thank the community for sharing many fixes and improvements. Thanks guys, please keep it up! You can now also easily fork and send pull requests at the official Github repository.

History

Inno Setup Directx Installation

  • Oct, 2007
    • Initial version
  • Aug, 2008
    • Now uses dotnetchk.exe to determine which version of .NET Framework and its language pack is installed
    • Added .NET Framework language pack(s) to script
    • Added translation for download page
    • Separated script code into multiple files to make it easier to update the script for different versions of the .NET Framework
  • Jan, 2009
    • Wrote source code modular (each dependency now has one file)
    • Added code for Windows 2000 Security Update KB835732, .NET Framework 1.1, 2.0 SP1, 3.5, 3.5 SP1 and their language packs
    • Remove usage of dotnetchk.exe again as it only worked for .NET Framework 2.0 and below
  • Sep, 2009
    • Code for dependencies installation routine was completely rewritten and is now executed before the actual installation of the application. Setup also checks if all dependencies are installed successfully and if not, displays an error page
    • Added support for 32-bit (x86) and 64-bit (x64) OS including Itanium (ia64)
    • Added code for .NET Framework 2.0 SP2 and its language pack
    • Fixed windows version check bug and language pack check bug
  • Sep, 2011
    • Added support for .NET Framework 4.0, Windows Installer 4.5, Visual C++ 2010 Redistributable, SQL 2008 Express and SQL 3.5 Compact Edition (community)
    • Added helper functions to determine the installed .NET Framework version which removed redundant code
    • Added version strings parser to fix wrong detection for version numbers above 9
    • Added delayed and forced mid-install restart support
    • Added usage of #define in setup.iss (community)
    • Added unicode version of Inno Setup as default for better multi-language support
    • Fixed restart on 3010 resultcode from installers
    • Fixed missing check in Windows 2000 Security Update KB835732
    • Added support for offline files on x64 and IA64 OS
  • Jun, 2014
    • Added support for .NET Framework 4.5.2
    • Fixed installing WIC before .NET Framework 4.0 (community)
    • Fixed Visual C++ 2010 Redistributable install parameters (community)
    • Fixed KB835732 install parameters (community)
  • Jan, 2015
    • Added support for Visual C++ 2005, 2008, 2012, 2013 Redistributable
    • Improved Visual C++ Redistributable detection method (community)
    • Fixed installing products with LCID parameter in certain cases (community)
  • Aug, 2015
    • Added support for Visual C++ 2015 Redistributable (community)
    • Added support for .NET Framework 4.6 (community)
    • Fixed download URL for Visual C++ 2012 32-Bit Redistributable (community)
    • Fixed comparing version numbers with different amount of numbers
  • Aug, 2017
    • Added support for Visual C++ 2017 Redistributable
    • Added support for .NET Framework 4.6.2 and 4.7
    • Added support for DirectX End-User Runtime
    • Added support to install 32-bit version of products on 64-bit operating system
    • Added Russian, Italian, Dutch, Japanese and Korean localizations (community)
    • Improved detection of Visual C++ Redistributables
    • Improved formatting on ready to install page (community)
    • Improved and fixed some localizations (community)
    • Improved and normalized file sections
  • Oct, 2017
    • Added skippable error message if dependency failed to install to be able to continue on errors
    • Fixed detecting C++ Redistributable 2008 in rare cases
    • Fixed encoding of languages relying on Unicode
    • Fixed missing diacritics after last update
    • Fixed incorrectly installing non-supported .NET Framework language packs
    • Disabled download confirmation dialog

Inno Setup Studio

Comments are closed.