Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, May 25, 2020 1:37 PM
In some machines installing Visual C++ 2015-2019 Redistributable requires PC reboot. However, if we
1)Install Redistributable
2)Reboot
3) Remove Redistributable
4) Try to install it again
It doesn't require a reboot on the second attempt of installation. In addition, in some cases it doesn't require reboot even on the first attempt to install it. It looks that it depends not on Redistributable itself but on some KB update or something like that.
It's pretty important for me to reproduce the "reboot required" environment for Installer debugging purposes. Maybe someone knows how it works and how I can reproduce "reboot required" situations.
All replies (5)
Monday, May 25, 2020 1:19 PM
In some machines installing Visual C++ 2015-2019 Redistributable requires PC reboot. However, if we
1)Install Redistributable
2)Reboot
3) Remove Redistributable
4) Try to install it again
It doesn't require a reboot on the second attempt of installation. In addition, in some cases it doesn't require reboot even on the first attempt to install it. It looks that it depends not on Redistributable itself but on some KB update or something like that.
It's pretty important for me to reproduce the "reboot required" environment for Installer debugging purposes. Maybe someone knows how it works and how I can reproduce "reboot required" situations.
Monday, May 25, 2020 1:46 PM
Hello,
this forum is for Visual C++ source code problems. You have a question about the installation. So you should better ask here: https://social.msdn.microsoft.com/Forums/en-US/home?forum=vssetup
(I'm sorry I'm not a moderator who can move your question to the appropriate forum, so ask there again.)
Regards, Guido
Monday, May 25, 2020 3:13 PM | 2 votes
The most likely reason why the reboot is required is if a previous version of the redistributable is installed (this includes the 2015 and 2017 redistributables) on the system and an application that uses files from the redistributable is currently running.
This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.
Tuesday, May 26, 2020 8:03 AM
Good idea. I'll try to reproduce in in that way. Thank you
Tuesday, May 26, 2020 8:18 AM
Hi bogdanvso,
Welcome to MSDN forum.
According to your description, I do some testing on my side and the “Reboot Required” message isn’t appeared when installallation.
In addition to the suggestion from Darran Rowe, I suppose it may be caused by some cache files generated by the previous installation. You could try to clean your %temp% folder and try again.
Hoping everything goes well.
Best Regards,
Anna
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]