vcredist2015-2022 package

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
Answer
TITCHI
Messages: 11
Registration: February 9, 2022 - 9:36 AM

December 19, 2024 - 11:33

Good morning,
The vcredist2015-2022 package is installed on more than 600 PCs but on about thirty PCs it has an error.
Here is the error:

Code: Select all

Erreur lors de l'installation de ['lso-vcredist2015-2022']: erreurs dans les paquets [[PackageRequest(package='lso-vcredist2015-2022',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('lso-vcredist2015-2022','14.42.34433.0-27' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5348, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4328, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4235, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\waptm86v8xtn\\setup.py", line 22, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3991, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2177, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"VC_redist.x86.exe" /quiet /norestart\' returned non-zero exit status 1603.\nOutput:\n']]
I removed the vcredist and vcredist2015-2022 packages and then reinstalled them, but it didn't change anything.
jlepiquet
Messages: 69
Registration: Sep 3, 2024 - 4:09 p.m.

December 19, 2024 - 11:50

Good morning,

Error 1603 is a generic Microsoft error on installations.

To get more logs, you can modify line 9 of setup.py to:

Code: Select all

silent_args = "/quiet /norestart /log c:\\temp\\vclog.log"
This will allow us to obtain logs and understand what is really happening during the installation.

Sincerely,
TITCHI
Messages: 11
Registration: February 9, 2022 - 9:36 AM

December 19, 2024 - 12:21

Here are the new logs:
Installing: VC_redist.x86.exe

Code: Select all

Erreur lors de l'installation de ['lso-vcredist2015-2022(=14.42.34433.0-28)']: erreurs dans les paquets [[PackageRequest(package='lso-vcredist2015-2022',version=(Version('14.42.34433.0'), 28),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('lso-vcredist2015-2022','14.42.34433.0-28' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5348, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4328, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4235, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\waptpj7e9g33\\setup.py", line 22, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3991, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2177, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"VC_redist.x86.exe" /quiet /norestart /log c:\\\\temp\\\\vclog.log\' returned non-zero exit status 1603.\nOutput:\n']]
Traceback (most recent call last):
  File "<string>", line 1943, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1341, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['lso-vcredist2015-2022(=14.42.34433.0-28)']: erreurs dans les paquets [[PackageRequest(package='lso-vcredist2015-2022',version=(Version('14.42.34433.0'), 28),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('lso-vcredist2015-2022','14.42.34433.0-28' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5348, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4328, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4235, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\waptpj7e9g33\\setup.py", line 22, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3991, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2177, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"VC_redist.x86.exe" /quiet /norestart /log c:\\\\temp\\\\vclog.log\' returned non-zero exit status 1603.\nOutput:\n']]
jlepiquet
Messages: 69
Registration: Sep 3, 2024 - 4:09 p.m.

December 19, 2024 - 2:26 PM

You normally have 3 files in the c:\temp folder that begin with vclog.
Can you send them to us?
TITCHI
Messages: 11
Registration: February 9, 2022 - 9:36 AM

December 20, 2024 - 9:35 AM

Hello,
I can't find these files.
TITCHI
Messages: 11
Registration: February 9, 2022 - 9:36 AM

January 8, 2025 - 10:06 AM

nothing in the temp folder
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

January 8, 2025 - 10:15

Good morning,

Yes, I also have this kind of problem with VCredist and it's quite annoying...
So I used your exchange as inspiration to figure things out.
I run the following commands on the machine, making sure to select the version that is installed on the machine:

Code: Select all

VC_redist.x86.exe /repair /quiet /norestart /log c:\\temp\\vclog.log
VC_redist.x64.exe /repair /quiet /norestart /log c:\\temp\\vclog.log
Then I launch an installation of the new version via WAPT and it works.

I was already using this kind of technique to resolve error 1603 in corrupted MSI files:

Code: Select all

msiexec ApplicationName="Mobile" /fvomusa "asset.msi" /L log.txt
And I couldn't figure out how to do it with VCredist because there was no MSI available.
TITCHI
Messages: 11
Registration: February 9, 2022 - 9:36 AM

January 9, 2025 - 09:13

Hello,
thank you Smandel, but can you explain to me precisely how you did it?
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

January 9, 2025 - 09:25

Basically, I check the installed version of VCredist in the WAPT inventory.
I retrieve the version from WAPT or the store.
I edit it to download it to my machine and extract the EXE files contained in the package.
I then send these EXE files to the problematic machine, using MeshCentral in my case.
And I run the commands from my previous post on the problematic machine.
Answer