Page 1 of 1

Google Drive File Stream Update

Published: November 13, 2018 - 12:09 PM
by tdejesus
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

Re: Google Drive File Stream Update

Published: November 17, 2018 - 1:22 PM
by sfonteneau
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