I'm using Inno Setup, and I need to install a 3rd party software. But if I cancel the 3rd party installation, the setup will skip the postinstall run tasks and proceed to completing setup wizard which prompt for computer restart. Is there a way to proceed to postinstall even after canceling 3rd party installation? Here are the sample code.
[Tasks]
Name: "install_3rdparty"; Description: "Install 3rd party"; GroupDescription: "Prerequisite software:"
[Files]
Source: "driver\3rdparty.exe"; DestDir: {app}\driver
[Run]
Filename: "{app}\driver\3rdparty.exe"; StatusMsg: "Installing 3rd party"; Check: IsWin64(); Tasks: install_3rdparty; Flags: skipifsilent
Filename: "{app}\my_program.exe"; Flags: postinstall; Description: "Launch my program"