Chrome update error

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
ligerotl
Messages: 5
Registration: May 13, 2022 - 3:14 p.m.

February 2, 2023 - 8:54 AM

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
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

February 2, 2023 - 9:23 AM

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.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

February 2, 2023 - 12:01

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

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
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

February 2, 2023 - 3:16 PM

This thing is still a challenge to manage!
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

February 2, 2023 - 3:18 PM

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.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
ligerotl
Messages: 5
Registration: May 13, 2022 - 3:14 p.m.

February 3, 2023 - 10:31

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
x-davidl
Messages: 40
Registration: Apr 25, 2022 - 5:07 p.m.

February 14, 2023 - 4:16 PM

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
Attachments
state after the operation
state after the operation
mRemoteNG_SYapIB4Stf.png (7.42 KB) Viewed 4904 times
state with the error
state with the error
mRemoteNG_T4lzJiGkDu.png (5.6 KiB) Viewed 4904 times
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 15, 2023 - 09:23

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
x-davidl
Messages: 40
Registration: Apr 25, 2022 - 5:07 p.m.

February 15, 2023 - 10:01

Hello Denis,

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

Regards
Locked