Recently, after upgraded my Windows 10 to Windows 10 22h2 (build 19045), Visual Studio 2019 cannot start, because the 32 bit version of powershell.exe
is failing:
"c:\windows\syswow64\windowspowershell\v1.0\powershell.exe"
Then, I run Visual Studio Installer to repair VS 2019 (ver. 16.11.41), but the repair is also failed.
Note: I have to use VS 2019 for my work. But, I also tried to install VS 2022 community version, it is also failed at the above powershell.exe
. The 32 bit apps can still run Windows 10 64 bit 22h2, why not the 32 bit version of powershell.exe
?
The specific error log:
Something went wrong with the install.
You can troubleshoot the package failures by:
1. Search for solutions using the search URL below for each package failure
2. Modify your selections for the affected workloads or components and then retry the installation
3. Remove the product from your machine and then install again
If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.
================================================================================
Package 'Microsoft.VisualCpp.Redist.14,version=14.40.33816,chip=x86' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualCpp.Redist.14;PackageAction=Install;ReturnCode=-1073741819
Details
Command executed: "c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe" -NoLogo -NoProfile -Noninteractive -ExecutionPolicy Unrestricted -InputFormat None -Command "& """C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.40.33816,chip=x86\VCRedistInstall.ps1""" -PayloadDirectory """C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.40.33816,chip=x86""" -Architecture x86 -Logfile """C:\Users\username\AppData\Local\Temp\dd_setup_20241013044643_002_Microsoft.VisualCpp.Redist.14.log"""; exit $LastExitCode"
Return code: -1073741819
Return code details: Unknown error (0xc0000005)
After uninstalled VS 2019, then reinstalled it, but the problem is the same. VS 2022 community reinstallation is also failed. I expect that both VS 2019 pro and VS 2022 community installation should work on Windows 10 22h2 based on Visual Studio download link.
"c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe"
from admin prompt, it is hanging. After 5 min or so, an eror dialog is popped up saying "Debug" or "Close. Also, had rundism /online /Cleanup-Image /StartComponentCleanup
,sfc /scannow
,dism /Online /Cleanup-Image /RestoreHealth
, but to no avail. The dism did not find a problem. – CarnotC:\Windows\System32\WindowsPowerShell\v1.0
toC:\Windows\SysWOW64\WindowsPowerShell
folder (renamed exitingv1.0
tov1.0-32bit
before copy), the installation is OK, but VS 2019 still cannot run with the same error. Now, just tried your command, `"C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.40.33816,chip=x86\VCRedistInstall.ps1"
, it immediately returns without anything on the PS terminal screen. Also, tried repairing VS 2019, but still the same error. VS 2022 is running OK now. But, I need VS 2019. – Carnot