InnoSetup Script installing VC redistributables and registering VC OCX resulting in “RegSrv32 failed with exit code 0x1”
问题 My InnoSetup Script needs to install the VC redistributables (vcredist_x86.exe) but also registers an OCX relying on the redist package. I wasn't able to have the package installed prior to the regsrv32 call, so on a virgin system it always results in a "RegSrv32 failed with exit code 0x1" error (which I could ignore and run the setup again to correctly register the OCX). How can I make sure the redist package is installed before registering? ; Script generated by the Inno Setup Script Wizard