Google Drive File Stream Update

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
Locked
tdejesus
Messages: 13
Registration: August 22, 2017 - 4:39 PM

November 13, 2018 - 12:09

Good morning,

I created a package to deploy Google Drive File Stream. It works well. Here is the package code:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = ['{6BBAE539-2232-434A-A4E5-9A33560C6283}']

def install():
    print('installing sof-google-drive-file-stream')
    install_exe_if_needed("GoogleDriveFSSetup.exe",'--silent',key='',min_version='28.1.35.1747')
    #run(r'"GoogleDriveFSSetup.exe" --silent')

def uninstall():
    print('uninstalling google-drive-file-stream')
    run(r'"%s\Google\Drive File Stream\28.1.35.1747\uninstall.exe" --silent --force_stop' % programfiles)
    
The application installs correctly. However, I get an error message when an older version is already installed. The new version of the application installs anyway. Here is the error message:

Code: Select all

installing sof-google-drive-file-stream
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3508, in install_wapt
    exitstatus = setup.install()
  File "c:\windows\temp\waptecdapx\setup.py", line 8, in install
  File "C:\Program Files (x86)\wapt\common.py", line 3467, in new_func
    return func(*args,**kwargs)
  File "C:\Program Files (x86)\wapt\setuphelpers.py", line 3982, in install_exe_if_needed
    run(r'"%s" %s' % (exe,silentflags),accept_returncodes=accept_returncodes,timeout=timeout,pidlist=pidlist)
  File "C:\Program Files (x86)\wapt\setuphelpers.py", line 1044, in run
    raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
CalledProcessErrorOutput: Command '"GoogleDriveFSSetup.exe" --silent' returned non-zero exit status 1.
Output:
CalledProcessErrorOutput: Command '"GoogleDriveFSSetup.exe" --silent' returned non-zero exit status 1.
Output:
    
Any idea what the problem might be?
THANKS
WAPT 1.8.1 Community
Server OS (Windows Server 2012 R2)
WAPT Client: 1.8.1
Client Machines: Running Win10x64
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 17, 2018 - 1:22 PM

Your installation returns an exit code 1, which is not expected by install_exe_if_needed because it's not a standard code.

https://www.wapt.fr/fr/doc/Frequent-pro ... x.html#id7
https://github.com/tranquilit/WAPT/blob ... s.py#L4097

If this is "normal," you can add code 1 when launching the installer:
accept_returncodes=[0,3010,1]

Remember to add the key! :

https://youtu.be/z_EN2CBCTcY?t=99
Locked