Page 1 of 2

Chrome update error

Published: February 2, 2023 - 8:54 AM
by ligerotl
Good morning,

I use the Chrome package to update this software on the workstations in my network.
Everything works on most machines, however, on about fifty machines running Win10 and Win11, I got this error message:
Installing: googlechromestandaloneenterprise64_109.0.5414.120.msi
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\common.py", line 4047, in install_wapt
exitstatus = setup.install()
File "C:\WINDOWS\TEMP\waptq7wayj7b\setup.py", line 36, in install
File "C:\Program Files (x86)\wapt\common.py", line 3997, in new_func
return func(*args, **kwargs)
File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1438, in install_msi_if_needed
run(r'msiexec /norestart /q /i "%s" %s' % (msi, props), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)
File "C:\Program Files (x86)\wapt\waptutils.py", line 2138, in run
raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "googlechromestandaloneenterprise64_109.0.5414.120.msi" NOGOOGLEUPDATING=1 NOGOOGLEUPDATEPING=1' returned non-zero exit status 1603.
Output:

CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "googlechromestandaloneenterprise64_109.0.5414.120.msi" NOGOOGLEUPDATING=1 NOGOOGLEUPDATEPING=1' returned non-zero exit status 1603.
Output:
They have this version of Chrome: 107.0.5304.107 and since then they no longer want to update.
Uninstallation doesn't work, even when accessing the machine directly. The only solution I've found is to access the machines with a portable version of Revo Uninstaller and delete registry entries. After that, installation can be done directly or via Wapt.
Am I the only one having this problem?
Isn't there a simpler way to remove the software?

Thank you in advance for your feedback

Good day

Re: Chrome update error

Published: February 2, 2023 - 9:23 AM
by t.heroult
I'd also be interested.

Installing Chrome is a complete disaster, regardless of the management method.
It's not just software, it's an octopus that spreads its tentacles throughout the entire system; that's why the updates are so problematic, in my opinion.

Re: Chrome update error

Published: February 2, 2023 - 12:01
by sfonteneau
t.heroult wrote: Feb 2, 2023 - 9:23 AM I would also be interested.

Installing Chrome is a complete disaster, regardless of the management method.
It's not a piece of software, it's an octopus that lays its tentacles throughout the entire system; that's why the updates are so problematic, in my opinion.
On my old packet of ants I used a different method, but it worked

Actually, Chrome comes from Chromium, and therefore the Chrome MSI installer contains an executable file

https://wapt.lesfourmisduweb.org/detail ... 20d51.wapt

So, in my update package, I was installing the msi and then retrieving the real "exe" installer underneath, which I find much more stable.

Code: Select all

  """ Chrome Installation """
    run(r'msiexec /norestart /q /i "googlechromestandaloneenterprise64-fr.msi" ')

    """ Reading version """
    vers = get_file_properties(makepath(programfiles64,'Google','Chrome','Application','chrome.exe'))['ProductVersion']

    """ Search and copy chrome_installer.exe """
    filechrome = glob.glob(makepath(programfiles32,'Google','Update','Download','*','*','chrome_installer.exe'))
    for exe in filechrome :
        if get_file_properties(exe)['ProductVersion'] == vers :
            if isfile('chrome_installer.exe'):
                remove_file('chrome_installer.exe')
            filecopyto(exe,'chrome_installer.exe')
Therefore, the installation file is not an MSI but an EXE:

Code: Select all

 install_exe_if_needed('chrome_installer.exe' ,silentflags='--system-level /norestart /i',key='Google Chrome',min_version=versionsoft,killbefore=['chrome.exe'])
However, I believe that the old MSI version of Chrome needs to be uninstalled

Re: Chrome update error

Published: February 2, 2023 - 12:10 PM
by sfonteneau
ligerotl wrote: Feb 2, 2023 - 8:54 AM The only solution I've found is to access the machines with Revo Portable and delete some registry entries. Then, the installation can be done directly or via Wapt.
Am I the only one having this problem?
Isn't there a simpler way to remove the software?
I think it would be necessary to test and write a piece of code like this:

Remove HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\uninstallkeychrome
Delete the key HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\uninstallkeychrome\PackageCode

And perhaps in certain cases, there are things to delete in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes

This type of procedure allows for a brute-force "uninstallation" when the MSI file is corrupted; it's equivalent to Windows' dcdiag

Re: Chrome update error

Published: February 2, 2023 - 3:16 PM
by t.heroult
This thing is still a challenge to manage!

Re: Chrome update error

Published: February 2, 2023 - 3:18 PM
by t.heroult
sfonteneau wrote: February 2, 2023 - 12:10
ligerotl wrote: Feb 2, 2023 - 8:54 AM The only solution I've found is to access the machines with Revo Portable and delete some registry entries. Then, the installation can be done directly or via Wapt.
Am I the only one having this problem?
Isn't there a simpler way to remove the software?
I think it would be necessary to test and write a piece of code like this:

Remove HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\uninstallkeychrome
Delete the key HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\uninstallkeychrome\PackageCode

And perhaps in certain cases, there are things to delete in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes

This type of procedure allows for a brute-force "uninstallation" when the MSI file is corrupted; it's equivalent to Windows' dcdiag
Sometimes we also have (and this is really awful to deal with) the key

Code: Select all

 HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome
on which the rights are modified.
It is then necessary to modify the rights in cascade (which doesn't work very well, so we end up modifying the rights in each of the subkeys) in order to be able to delete it.

Re: Chrome update error

Published: February 3, 2023 - 10:31
by ligerotl
Hello and thank you for these answers

I added the following lines:

Code: Select all

registry_delete(root=HKEY_LOCAL_MACHINE, path=r'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall', valuename=r'{5D2950AA-215F-3C0E-ACFB-21E215FD6304}')
 registry_delete(root=HKEY_LOCAL_MACHINE, path=r'SOFTWARE\Classes\Installer\Products\{5D2950AA-215F-3C0E-ACFB-21E215FD6304}', valuename=r'PackageCode')
Chrome no longer appears in my programs, but the .msi installation fails.
So I remade a package by copying the code from "Les Fourmis", it works (installing the latest version of Chrome on my PC), but not on the machines with errors.
I also added:

Code: Select all

registry_delete(root=HKEY_LOCAL_MACHINE, path=r'SOFTWARE\Classes\Installer\UpgradeCodes', valuename=r'96FDFD1C54952F233AE5EE499CC9C74F')
 registry_delete(root=HKEY_LOCAL_MACHINE, path=r'SOFTWARE\Google', valuename=r'Chrome')
Which are removed by REVO but no better.
I delete my keys correctly, but reinstalling using msi or exe files fails.
Here is my result for the executable:

Code: Select all

installing Google Chrome
Waiting for key: Google Chrome to appear in Windows registry
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4047, in install_wapt
    exitstatus = setup.install()
  File "C:\WINDOWS\TEMP\waptmtsinfob\setup.py", line 25, in install
  File "C:\Program Files (x86)\wapt\common.py", line 3997, in new_func
    return func(*args, **kwargs)
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1546, in install_exe_if_needed
    error('Setup %s has been installed but the %s can not be found' % (exe,searchparam))
  File "C:\Program Files (x86)\wapt\waptutils.py", line 1913, in error
    raise EWaptSetupException('Fatal error : %s' % reason)
waptutils.EWaptSetupException: Fatal error : Setup chrome_installer.exe has been installed but the key Google Chrome can not be found

EWaptSetupException: Fatal error : Setup chrome_installer.exe has been installed but the key Google Chrome can not be found

Re: Chrome update error

Published: February 14, 2023 - 4:16 PM
by x-davidl
Hello,

I have the same problem with the latest Chrome updates (110.0.5481.97-31). My machines are on 109.0.5414.75-31 (to be precise... :D ). Most machines are OK, except for a few. See attached screenshot.

I just performed the following steps:
- Selected the machine with the error
- In the package list (General tab), right-clicked on the Chrome package and selected 'Forget Packages' (sacrilege, I admit)
- Confirmed

- Refreshed
, the error icon disappeared (normal, there are no more audit errors).

I reinstalled the package on the machine
- Right-clicked on the machine and selected
'Modify' - Reinstalled the Chrome package (the updated one)
- Saved and applied
- Refreshed
- The package appears as pending installation (blue plus sign)
- Right-clicked on this line to install the selected package
- Refreshed a few times to check the progressI
The package is now present again in the general tab of the computer, and at the correct version.

'm restoring my machine to its original state
- right-click on the computer to modify it
- I delete (just delete) the Chrome package so that my computer isn't different from the others
- save and apply.

I did this on two computers and they are both working fine. It's a bit of a strange procedure, but if it can help...

Regards

Re: Chrome update error

Published: February 15, 2023 - 9:23 AM
by dcardon
Hi David,

could it be Windows 7? The latest version of Chrome no longer supports Windows 7. The minimum version for the OS wasn't up to date in the control file; this has been fixed and should be online soon. Windows 7 machines will then no longer see the new version of the package.

Regards,

Denis

Re: Chrome update error

Published: February 15, 2023 - 10:01 AM
by x-davidl
Hello Denis,

no, all my machines are on Windows 10 and a few are on Windows 11.

Regards