Calling to the InstallHinfSection SETUPAPI function makes bundle installer to run second install instance.
This is a minimal set of code for WiX bug report wixtoolset/issues#8567
- build the installer with command build.cmd
- copy bundle installer swapBuffers-driver-bundle.exe to the machine where Test Signed drivers loading is enabled. See https://learn.microsoft.com/en-us/windows-hardware/drivers/install/the-testsigning-boot-configuration-option
- Double click the bundle installer swapBuffers-driver-bundle.exe.
- Follow the installer's instructions to install the driver.
When the installer's finish screen is appear or several seconds later the second instance of installer is started.
There is not any additional installer instance appeared to user.
- Driver binaries are built from sources of MS sample kernel driver. https://github.com/microsoft/Windows-driver-samples/tree/main/filesys/miniFilter/swapBuffers
- If you install the driver by MSI package swapBuffers-driver-package.msi the issue is not reproduced.
- The issue reproduces only if InstallHinfSection SETUPAPI function is called to install driver in CustomAction through the EXE or DLL.