Hello,
Apologies for the quite delayed reply here.
Have modified .aip to eliminate Resources > Drivers and replaced with Custom Action Launch file after Execute Sequences > Add Resources > Install to run pnputil directly.
This works and allows the driver features to be optionally installed.
When Launch File runs, it opens a command window which cannot, it seems, be suppressed, which is sub-optimal.
I have tested this with the same configuration as in your case and no UI appears for me.
Indeed, without the
"Hide program's window", a cmd quickly flashes, but with that option enabled, nothing happens.
Have checked afterwards and the driver was installed just fine.

- Screenshot_148.png (32 KiB) Viewed 15170 times
Are you able to reproduce this consistently? For example, could you please try to reproduce this on a VM and let me know if it still happens?
Create Enterprise .aip
Add one file to main feature
Set Theme to Classic Aero
Remove Welcome dialog
Add SetupTypeDlg
Add Driver using New Driver wizard
Driver Feature Properties: Display Expanded, Installed.
Test install in Windows Sandbox
Install using Typical or Custom with no changes, install succeeds.
Test install in Windows Sandbox
Install using Custom with driver feature deselected, install fails.
Regarding this, please note that I have tested it and can confirm the behavior.
I will create a ticket so that this can be fixed in a future version of Advanced Installer.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging