With Advanced Installer 16.8.
To replicate the issue use the attached AIP projects.
1) Build SecondPack.aip
2) Build MainPack.aip
3) Install the MainPack.exe
4) Edit MainPack.aip
5) Change product version to 1.1.0 (see Part1.png) confirm "Generate New"
6) Add Feature-Based SecondPack and uncheck "Continue with installation....." (see Part2.png)
7) Build MainPack.aip
8) Install MainPack.exe and error whil show see Part3.png
9) Cliking OK on the error message the Part4.png message show and the installer hangs.
Thank you for the detailed explanation and for the provided resources.
I have tested this and I was able to reproduce the issue. I have forwarded this to our development team and hopefully this will be fixed in a future version of Advanced installer. Thank you for bringing this to our attention!
Not sure if this will help, but here is a little explanation of why this is happening: basically because your main package has the UILevel = Basic UI, the feature-based prerequisite is treated as a post-install prerequisite. Normally, feature-based prerequisite are installed right when you are pressing the Install button and since there is no UI, the feature-based prerequisites are treated like post-install.
The post install prerequisite is launched through one EXE of ours, called AI_PackageChainer. For some reason, it seems that the AI_PackageChainer fails to interpret the return code of the prerequisite in case the "Continue with main installation even if the prerequisite fails" option is unchecked, therefore hanging (even tho the main installer was already installed - you can check this either in the log file or in Control Panel).
A workaround for this would be to check the above option.