I would like to know how to add additional setup exe and execute the additional exe with my main exe using innosetup.
Kindly help me as I am trying this for the last 3 days as I am new in using innosetup.
Thank you.
I would like to know how to add additional setup exe and execute the additional exe with my main exe using innosetup.
Kindly help me as I am trying this for the last 3 days as I am new in using innosetup.
Thank you.
The simplest way is to call you additional EXE in [Run] section. All EXE files should be added to main setup in [Files] section. You can either just copy them to the TEMP folder for the installation time or copy them to your app folder (if needed).
[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
Inno doesn't have a concept of a "main exe". If you want to include two executables, then you just need to create multiple [Files]
entries.
Once installed, you can then just have multiple [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