vcredist icon indicating copy to clipboard operation
vcredist copied to clipboard

Problem with 0.78

Open Felipefpl opened this issue 1 year ago • 8 comments

I'm getting this error now when i install 0.78 to update my previous installation of you vc++ pack. Untitled

Also, i installed a game called "Chasm" and it installed the vc++ 2012 runtimes, for some reason it didnt detect the installed files of your pack.

Felipefpl avatar Jan 31 '24 20:01 Felipefpl

This usually occur when original vc_redist.x64.exe is installed, then the cached installer is removed from C:\ProgramData\Package Cache

  • start command prompt as administrator and execute:
set "_msikey=hklm\software\classes\installer\dependencies"
reg delete "%_msikey%\Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v14\Dependents" /f 2>nul
reg delete "%_msikey%\Microsoft.VS.VC_RuntimeAdditionalVSU_x86,v14\Dependents" /f 2>nul
reg delete "%_msikey%\Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v14\Dependents" /f 2>nul
reg delete "%_msikey%\Microsoft.VS.VC_RuntimeMinimumVSU_x86,v14\Dependents" /f 2>nul
  • manually uninstall vc++ 2022 from "Installed Programs" panel
  • try the repack

if that didn't work, then you need more harder way to fix

most programs and games bundle the original exe installer, it can't detect the msi installer properly

abbodi1406 avatar Feb 01 '24 02:02 abbodi1406

Tried your solution and it didnt work, i had to use a program "Wise Program Unninstaller" to force the deletion of the old installers. Tried to re-install the pack and got the same errors. It doesnt identify the .msi package.

Felipefpl avatar Feb 01 '24 11:02 Felipefpl

  • start command prompt as administrator and run
set k=HKEY_CLASSES_ROOT\Installer\Products

for /f %# in ('reg query %k% /s /f "C++ 2022 X64 Additional" /d ^| findstr /i HKEY_') do reg add %#\SourceList /v LastUsedSource /t REG_EXPAND_SZ /d "" /f

for /f %# in ('reg query %k% /s /f "C++ 2022 X64 Minimum" /d ^| findstr /i HKEY_') do reg add %#\SourceList /v LastUsedSource /t REG_EXPAND_SZ /d "" /f

for /f %# in ('reg query %k% /s /f "C++ 2022 X86 Additional" /d ^| findstr /i HKEY_') do reg add %#\SourceList /v LastUsedSource /t REG_EXPAND_SZ /d "" /f

for /f %# in ('reg query %k% /s /f "C++ 2022 X86 Minimum" /d ^| findstr /i HKEY_') do reg add %#\SourceList /v LastUsedSource /t REG_EXPAND_SZ /d "" /f

abbodi1406 avatar Feb 01 '24 15:02 abbodi1406

Tried that and got the same mistake. It asks for vcredist.msi.

Felipefpl avatar Feb 01 '24 15:02 Felipefpl

set k=HKEY_CLASSES_ROOT\Installer\Products

for /f %# in ('reg query %k% /s /f "C++ 2022 X64 Additional" /d ^| findstr /i HKEY_') do reg delete %# /f

for /f %# in ('reg query %k% /s /f "C++ 2022 X64 Minimum" /d ^| findstr /i HKEY_') do reg delete %# /f

for /f %# in ('reg query %k% /s /f "C++ 2022 X86 Additional" /d ^| findstr /i HKEY_') do reg delete %# /f

for /f %# in ('reg query %k% /s /f "C++ 2022 X86 Minimum" /d ^| findstr /i HKEY_') do reg delete %# /f

if this doesn't work, nothing else i can suggest

abbodi1406 avatar Feb 01 '24 19:02 abbodi1406

err, that error dialog box didnt refer only to vc++ 2022, it happened with all versions of vc++. ;)

Felipefpl avatar Feb 04 '24 21:02 Felipefpl

@abbodi1406 - hi, tested 0.83 and i got this error with office runtime, the error demands a .msi installer to be used to install the office runtime. 2024-08-22 12_18_38-Greenshot

Felipefpl avatar Aug 22 '24 15:08 Felipefpl

Don't use programs that "clean" registry or remove cached files

stdin82 avatar Aug 26 '24 08:08 stdin82