Hello
I understand that you’re having trouble installing Visual C++ 2015 on your Windows Server 2012 R2 due to the error 0x80240017. Here are some steps you can try to resolve this issue:
Restart your device: One of the easiest solutions is to restart your PC immediately when you bump into this error.
Update your apps: Some apps on your device might be responsible for the Microsoft Visual C++ Install Error 0x80240017. So, updating those software programs could help resolve this issue.
Enable the Windows Installer Service: Since this is an installation error, the main issue might be coming from the Windows Installer service. For example, the Windows Installer service could be disabled. Here’s how you can enable this service:
Press Win + R to open the Run command dialog box.
Type services.msc and click Enter to open the Services window.
Locate the Windows Installer option and double-click on it.
Click the Startup type drop-down menu and select Manual.
Press the Start button to enable the service.
Finally, press Apply, press OK, and then restart your device to save these changes.
Re-Register the Windows Installer Service: Re-registering the Windows Installer service could also help resolve the problem. Here’s how you can re-register the Windows Installer Service via the Command Prompt:
Press Win + R to open the Run command dialog box.
Type CMD and press Ctrl + Shift + Enter to open an elevated Command Prompt.
Type the following command and press Enter to temporarily disable the Windows Installer service: msiexec /unreg
When the process is complete, re-register the Windows Installer service by typing the following command and pressing Enter: msiexec /regserver
Wait for the process to complete and then restart your device to save these changes.
Install the Microsoft Visual C++ Programs in Safe Mode: You could also tackle this problem by installing the Microsoft Visual C++ Programs in safe mode.
Install all windows updates: Make sure your system is up-to-date.
Install the KBKB2999226 and KB2919355 package: These packages contain necessary DLLs.
Clear TEMP folder and rename directories: Sometimes, performing a simple disk clean-up could help remove the system issues that are causing this error.
Download and install KB2919442: This is a prerequisite for KB2919335.
Run windows update, which will download and install KB2919335: Alternatively manually download and install KB2919335.
Install Visual Studio 2015 C++ Redistributable.
Please try these steps and let me know if you need further assistance.