1

I am installing DirectX and vc_2013_x64 from components section (and from Run section) and I am using this code too: How to add .arc decompression to Inno Setup? (answer of Martin Prikryl). How to move the installation of DirectX and vc_2013_x64 (if it is possible) to after the decompressing page (and before the finish page)? (Because with this code the installation is in the middle between installing page and decompressing page).

I am using this script to execute the sub-installers:

[Run]
Filename: {src}\_Redist\dxwebsetup.exe; StatusMsg: Installing DirectX...
Filename: {src}\_Redist\vcredist_x64.exe; StatusMsg: Installing vcredist_x64...
Community
  • 1
  • 1
Nico Z
  • 997
  • 10
  • 33

1 Answers1

1

There are many ways, e.g.:

  • Run the ExtractArc from the AfterInstall parameter of the archive Run entry, instead of the CurStepChanged event function:

    Source: {#ArcArchive}; DestDir: "{tmp}"; Flags: nocompression deleteafterinstall; \
         AfterInstall: ExtractArc
    
  • Or execute the dxwebsetup.exe and vcredist_x64.exe from the CurStepChanged before the ExtractArc, using the Exec function.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992