Hello Christina,
I don't work for Microsoft but I know how to fix your problem.
What you're seeing during the manual installation of Visual C++ 2022 there is a relatively common problem that happens with MSI installations. I'll try to explain it in broad or simple terms.
The Visual C++ Runtime Redistributables are wrapped EXEs. When you run the EXE, it extracts a bunch of stuff from itself and then runs an MSI to perform the actual installation. And, during the installation of an MSI, there is a step where the registry of the machine is checked for existing or older versions of the software you're trying to install. If it finds relevant information in the registry, it will then give that information precedence over just about anything else in regards to how to proceed with the install. Because the MSI installer is finding information regarding the install in the registry, it is deferring to that info to first perform an uninstall/repair/whatever before the install will proceed. And, because the information regarding the MSI at the path listed doesn't exist, you're unable to proceed.
I.E. There is information in the registry of that machine referencing that c:\Programdata\Package Cache... path and "vc_runtimeMinimum_x86.msi" that is overriding the normal installation steps of the Visual C++ 2022 EXE you're trying to run. This is breaking the installer from proceeding forward with the install.
So resolve the issue, we simply need to find the Key in the Registry that is causing this issue and delete it. Easy peasy.
1-
Start by searching the registry beneath this key:
"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products"
for this:
"vc_runtimeMinimum_x86.msi"
You can do this from a command window like this:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products" /s /f "vc_runtimeMinimum_x86.msi"
This should return multiple results if you have multiple versions of Visual C++ Runtimes installed (E.G. 2010, 2012, 2013, etc..).
When I searched on my machine, I found 4 results:
c:>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products" /s /f "vc_runtimeMinimum_x86.msi"
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1BAD2218D4DE6763BBA0AC63186945E3\SourceList
*PackageName REG\_SZ vc\_runtimeMinimum\_x86.msi*
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\2B7A37F2E05E6A93A9CBFE984E6CE263\SourceList
*PackageName REG\_SZ vc\_runtimeMinimum\_x86.msi*
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46\SourceList
*PackageName REG\_SZ vc\_runtimeMinimum\_x86.msi*
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\DC8A59DBF9D1DA5389A1E3975220E6BB\SourceList
*PackageName REG\_SZ vc\_runtimeMinimum\_x86.msi*
2-
Now we need to check these four keys to see which one might be causing us the problem.
To do this from your command window, use "reg query" followed by the key path (NOT including the "SourceList" part).
For example, from my first returned result from above, my command looks like this:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1BAD2218D4DE6763BBA0AC63186945E3"
When I run that command it gives me this:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1BAD2218D4DE6763BBA0AC63186945E3
*ProductName REG\_SZ Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.40664*
*PackageCode REG\_SZ 82C7CC9682E1077408579187FC5DC13E*
*Language REG\_DWORD 0x409*
*Version REG\_DWORD 0xc009ed8*
*Assignment REG\_DWORD 0x1*
*AdvertiseFlags REG\_DWORD 0x184*
*InstanceType REG\_DWORD 0x0*
*AuthorizedLUAApp REG\_DWORD 0x0*
*DeploymentFlags REG\_DWORD 0x3*
*Clients REG\_MULTI\_SZ :*
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1BAD2218D4DE6763BBA0AC63186945E3\SourceList
Here we can see that that key is referencing "Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.40664 ", so it's NOT the one we want. Keep doing the reg query commands on the other three keys until you find the one that's referring to the messed up Visual C++ 2022 stuff.
On my machine, it was the third one:
c:>reg query HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46
*ProductName REG\_SZ* ***Microsoft Visual C++ 2022 X86 Minimum Runtime - 14.40.33816***
*PackageCode REG\_SZ 91507CEA530B99A40B0EFDE1E0E92A0B*
*Language REG\_DWORD 0x409*
*Version REG\_DWORD 0xe288418*
*Assignment REG\_DWORD 0x1*
*AdvertiseFlags REG\_DWORD 0x184*
*InstanceType REG\_DWORD 0x0*
*AuthorizedLUAApp REG\_DWORD 0x0*
*DeploymentFlags REG\_DWORD 0x3*
*Clients REG\_MULTI\_SZ :*
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46\SourceList
And now that you've found the Offending Key, do a reg query including the "SourceList" path to confirm the "Package Cache" path that keeps showing up in your messed up installation window. Like so:
*c:>reg query HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46*SourceList
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46\SourceList
*PackageName REG\_SZ vc\_runtimeMinimum\_x86.msi*
*LastUsedSource REG\_EXPAND\_SZ n;1;****C:\ProgramData\Package Cache\{D7A66DA5-B103-45C1-A0A7-736C08E2F464}v14.40.33816\packages\vcRuntimeMinimum\_x86\***
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46\SourceList\Media
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46\SourceList\Net
(Again, this is the result from my machine. Yours will probably be slightly different/)
3-
Now that you're certain you've found the registry key that is causing your problem, you can delete it. By doing so, the next time the Visual C++ 2022 setup runs it will no longer find this bad information in the registry so it will proceed to install itself as if it's a fresh installation. Hopefully...
You'll need to change the path to whichever key you found on your own machine.
To delete the bad key, I would run this command on my machine:
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\5AD66A7D301B1C540A7A37C6802E4F46
(Note: Again, no "ProductList" in the path. This is the main parent key you would want to delete.)
When you run that, it will ask you if you're sure. You can press "y" to confirm in your command window.
As always, there is inherent risk when deleting stuff from your Registry. But, as long as you only delete this one key that is referring to the Visual C++ 2022 installation history, you shouldn't have any problems.
If it DOES still give you problems, like for example it's now complaining about the 64bit minimum runtime msi:
"vc_runtimeMinimum_x64.msi"
Don't worry! You now know exactly how to find that pesky MSI reference in the registry and delete it. Just repeat the three steps above to delete the offending Reg Key and then try the installation again!
Hopefully you, or someone in future Google Searches, find this helpful.
Good luck.