Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with 0.78 #85

Open
Felipefpl opened this issue Jan 31, 2024 · 8 comments
Open

Problem with 0.78 #85

Felipefpl opened this issue Jan 31, 2024 · 8 comments

Comments

@Felipefpl
Copy link

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.

@abbodi1406
Copy link
Owner

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

@Felipefpl
Copy link
Author

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.

@abbodi1406
Copy link
Owner

  • 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

@Felipefpl
Copy link
Author

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

@abbodi1406
Copy link
Owner

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

@Felipefpl
Copy link
Author

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

@Felipefpl
Copy link
Author

@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

@stdin82
Copy link

stdin82 commented Aug 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants