You have to include the MSI with your setup and install it together with your application.
Untested InnoSetup script portion (see also
Inno Setup Knowledge Base[
^] ):
[Files]
Source: "[<Path>\]CRRedist<version>.msi"; DestDir: "{tmp}"; Flags: deleteafterinstall
[Run]
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\CRRedist<version>.msi""";
Description: "Crystal Reports"; Flags: waituntilterminated
You may also let the shell execute the MSI file:
[Run]
Filename: "{tmp}\CRRedist<version>.msi"; Description: "Crystal Reports"; Verb: "open"; Flags: shellexec waituntilterminated
See also the
[Run] & [UninstallRun] sections[
^] for the various options and flags like showing a status message.
To handle errors during installation use the
Pascal Scripting: ShellExec[
^] function.