Page 1 of 1

Microsoft Visual c++ Runtime for 2015 requires reboot

Posted: Wed Dec 21, 2016 3:09 am
by kishorkk23
Hi,
When i choose the Application runtimes (Microsoft Visual C++ runtime for 2015), while installing it says system re-boot required.

Can we give the option of re-boot later? as currenlty it requires a madate re-boot for the runtime

Re: Microsoft Visual c++ Runtime for 2015 requires reboot

Posted: Wed Dec 21, 2016 10:23 am
by FrancescoT
Dear kishorkk23,

the IA VC++ install script (eg. "setupvc14rtm_update1_x86.mia" or "setupvc14rtm_update1_x64.mia") already implements the /norestart command line option to install the Microsoft Visual C++ 14 (Visual Studio 2015).

So in your case, you could modify the default script code in order to temporary ignore and skip such restart request. By default the install script use a "Reboot Computer and Resume Setup" command, when the visual C++ installer returns "3010" or "23" as result value.

At any rate, please consider that in case you are also installing other components that require the presence of VC++ RTM, these may fail to install due the skipped system reboot.

Finally and if you decide to proceed in this way, don't forget to programatically ask for a system reboot at the of your installation and in case the previous reboot request has been effectively skipped.

Hope this helps you.

Regards

Re: Microsoft Visual c++ Runtime for 2015 requires reboot

Posted: Fri Dec 30, 2016 12:56 am
by kishorkk23
Thanks, where in the script can i provide this option of re-boot later?

Currently it shows Cancel or ok to re-boot

Re: Microsoft Visual c++ Runtime for 2015 requires reboot

Posted: Fri Dec 30, 2016 10:50 am
by FrancescoT
Dear kishorkk23,

as I have already said, you should modify the default script code in order to temporary ignore and skip such restart request. "By default the install script use a "Reboot Computer and Resume Setup" command, when the visual C++ installer returns "3010" or "23" as result value."

You may use a custom variable to store the skipped re-boot condition and at the end of your setup process, you may conditionally reboot the system.

Hope this helps you.

Regards