[SOLVED] Creating Google Workplace Sync 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
MorganeDeveho
Messages: 19
Registration: July 20, 2021 - 2:42 PM

July 20, 2021 - 2:49 PM

Good morning,

I created the google work place sync package using the msi file that is on their website.
Here is the generated code:

Code: Select all

def install():
    # declaring local variables
    package_version = control.get_software_version()

    # installing the package
    install_msi_if_needed('enterprise_gsync.msi',
        min_version=package_version,
    )
The installation works in "debug" mode on the wapt console but does not work on the test environment.
WAPT self service asks me to force the installation but it doesn't change anything.
I would like to know if there are any logs I could consult in order to solve my problem.
Last edited by MorganeDeveho on July 23, 2021 - 5:09 PM, edited 1 time.
MorganeDeveho
Messages: 19
Registration: July 20, 2021 - 2:42 PM

July 20, 2021 - 3:00 PM

The package still manages to install on some machines.
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

July 20, 2021 - 3:44 PM

Hello,

does the package also work via pyscripter?
Last edited by Gaetan on July 20, 2021 - 4:40 PM, edited 1 time.
MorganeDeveho
Messages: 19
Registration: July 20, 2021 - 2:42 PM

July 20, 2021 - 3:55 PM

I use Visual Studio Code.
The script runs through this software
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

July 20, 2021 - 4:26 PM

The package is showing an error on the console when setting the dependency?
MorganeDeveho
Messages: 19
Registration: July 20, 2021 - 2:42 PM

July 20, 2021 - 4:41 PM

When I test the package using Visual Studio Code, it works.
However, the installation returns an error on some machines.
Are there any logs I could check/look at?
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

July 20, 2021 - 4:47 PM

When you click on the error package in the status column, what is displayed?
MorganeDeveho
Messages: 19
Registration: July 20, 2021 - 2:42 PM

July 21, 2021 - 4:10 PM

Exception: Error installing ['dvo-google-workspace-sync(=4.3.49.0-3)']: errors in packages [[PackageRequest(package='dvo-google-workspace-sync',version=(Version('4.3.49.0'), 3),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'windows'],min_os_version=Version('10.0.19043'),max_os_version=Version('10.0.19043')), PackageEntry('dvo-google-workspace-sync','4.3.49.0-3' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n File "C:\\Program Files (x86)\wapt\common.py", line 5011, in install\n result = self.install_wapt(full_fname(p.filename),\n File "C:\\Program Files (x86)\\wapt\\common.py", line 4010, in install_wapt\n raise e\n File "C:\\Program Files (x86)\\wapt\\common.py", line 3923, in install_wapt\n exitstatus = setup.install()\n File "C:\\Windows\\TEMP\\waptqitjceb_\\setup.py", line 12, in install\n File "C:\\Program Files (x86)\\wapt\\common.py", line 3877, in new_func\n return func(*args, **kwargs)\n File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1279, in install_msi_if_needed\n run(r\'msiexec /norestart /q /i "%s" %s\' % (msi, props), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 4029, in run\n raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'msiexec /norestart /q /i "enterprise_gsync.msi" \' returned non-zero exit status 1603.\nOutput:\n']]
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

July 21, 2021 - 5:57 PM

Vincent CARDON
Tranquil IT
MorganeDeveho
Messages: 19
Registration: July 20, 2021 - 2:42 PM

July 23, 2021 - 11:49

Thank you for your help.
The problem actually stemmed from the Office versions.
The package installed correctly on PCs with 64-bit Office but not on 86-bit ones.
Locked