Innosetup adds several exe files and performs in the main setup

I would like to know how to add an additional exe installation and perform an additional exe with my main exe using innosetup.

Please help me as I try this for the last 3 days, as I am new to using innosetup.

Thanks.

+4
source share
2 answers

The easiest way is to call an additional EXE file in the [Run] section. All EXE files should be added to the main setting in the [Files] section. You can either simply copy them to the TEMP folder at the time of installation, or copy them to your application folder (if necessary).

[Files] Source: "d:\ADDS\*"; DestDir: "{tmp}"; Flags: nocompression createallsubdirs recursesubdirs deleteafterinstall //contains DirectX in directx folder, VC Redist 2010 x86 and VC Redist 2010 x64 [Run] Filename: "{tmp}\directx\DXSETUP.exe"; Parameters: "/silent"; Flags: waituntilterminated skipifdoesntexist; StatusMsg: "Microsoft DirectX installation. Please wait..." Filename: "{tmp}\vcredist_x86_2010.exe"; Parameters: "/Q"; Flags: waituntilterminated skipifdoesntexist; StatusMsg: "Microsoft Visual C++ 2010 (x86) installation. Please Wait..." Filename: "{tmp}\vcredist_x64_2010.exe"; Parameters: "/Q"; Flags: waituntilterminated skipifdoesntexist; StatusMsg: "Microsoft Visual C++ 2010 (x64) installation. Please wait..."; Check: IsWin64 
+8
source

Inno has no concept of "prime exe". If you want to include two executable files, you just need to create several [Files] entries. After installation, you can simply have a few [Run] entries.

 [Files] ;Console Source: ..\Console.exe; DestDir: {app}; Flags: ignoreversion #ifdef debug Source: ..\Console.map; DestDir: {app} Source: ..\Console.pdb; DestDir: {app} #endif Source: ..\Console.chm; DestDir: {app} ;Node Source: ..\Node.exe; DestDir: {app}; Flags: ignoreversion #ifdef debug Source: ..\Node.map; DestDir: {app} Source: ..\Node.pdb; DestDir: {app} #endif 
+3
source

Source: https://habr.com/ru/post/1481713/


All Articles