Thanks, @gogogroundhog. This workaround may help some people. In my case, I'm not sure our users will want to reboot in the middle of the installation, and again at the end.
I'd rather Microsoft accept responsibility for the problem and fix it, or have InstallShield make some change to accommodate whatever unexpected return value the VC++ 2019 redist installer is sending. I was dismayed that Microsoft closed the issue, and I don't know how I can get the attention of InstallShield developers to see if they can provide a fix on the IS side.
If you would like to handle reboot at the end of the main installation then you can choose either of the below options from the prerequisite behavior tab
- Note it, fail to resume if the machine is rebooted, and reboot after the installation
- Ignore it, and fail to resume if machine is rebooted
Below link has more details.
Thank you, @Varaprasad. The prerequisite is set for /install /quiet /norestart. The Behavior is set to "Exit and resume on reboot" if the prerequisite appears to need a reboot. I include the SdFinishReboot dialog in OnFirstUIAfter(), so that the user will be prompted to reboot after all of the prerequisites and my software are installed. However, the problem is that the VC++ 2019 prerequisite crashes the rest of the installer. Are you saying that those settings will prevent it from crashing, and it will continue to the end of the installation?
Yes, those settings suppose to skip reboot flow and allow main installation to continue. Could you please try and let me know if it works for you?
It looks like your suggested setting prevents the problem. I still don't understand why the VC++ doesn't prompt for a reboot when you run it outside of InstallShield, but it does when it's run inside InstallShield as a prerequisite?
I will mark your solution as the fix, but I will wait a little bit, in case you have any ideas why VC++ behaves differently, and how to know in the future that a prerequisite requires a reboot if the external installer doesn't request it when run by itself.
Apparently I cannot. When I try to attach, I get "The file type (.prq) is not supported. Valid file types are: 7z, aacx, bat, bin, config, csv, dat, dl, dll, docx, eml, gif, gz, iap_xml, ini, irp, ism, issuite, jpg, lax, lic, log, mp4, msi, mst, ndi, opt, pdf, png, ppt, pptx, properties, ps1, request, response, return, rl, rul, sh, sln, tar, tar.gz, txt, vbs, xlsx, xml, zip, sql, rdp, xls, msg."
well, that's awkward. :)
Maybe you could copy and paste the PRQ text here (remove anything that is sensitive) ?