Page 1 of 1

[SOLVED] Google Drive File Stream

Published: May 14, 2018 - 3:30 PM
by sergead
Good morning,

WAPT Server: CentOS 7.3
WAPT Console: 1.3.12.13 on Windows 10x64
WAPT Client: 1.3.12.13
Client machines: Running Win10x64

I would like to install the Google Drive File Stream package on my Windows 10 clients using WAPT.
After various tests I am able to install the package but I cannot uninstall it; wapt does not give me an error during uninstallation but it does not uninstall it on the client.
Here is the code for my package:

Code: Select all

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

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

def install():
    print('installing google-drive-file-stream')
    run(r'"GoogleDriveFSSetup.exe" --silent')

def uninstall():
    print('uninstalling google-drive-file-stream')
    run(r'"%PROGRAMFILES%\Google\Drive File Stream\25.196.245.2031\uninstall.exe" --silent --force_stop')
Running the uninstallation command manually on the client works.
Furthermore, the other problem is the folder with the software version; for now, I've hardcoded it for testing purposes, but I'll need to find another solution eventually.

If anyone has an idea for creating this package, I'm all ears :-)

THANKS.

Re: Google Drive File Stream

Published: May 14, 2018 - 5:10 PM
by agauvrit
Good morning

I didn't quite understand the difference between:
Wapt doesn't give me any errors when uninstalling, but it doesn't uninstall it on the client.
And:
Running the uninstallation command manually on the client works.
Have you tried using PyScripter and testing the debugging of the uninstallation with the remove command?

Sincerely,

Alexander

Re: Google Drive File Stream

Published: May 14, 2018 - 5:48 PM
by sergead
Thank you for your reply.

Actually, when I launch the uninstallation via the wapt console, it tells me the software is uninstalled without any errors, even though it isn't.
And if I run the command "%PROGRAMFILES%\Google\Drive File Stream\25.196.245.2031\uninstall.exe" --silent --force_stop in the Windows command prompt on the client manually, it uninstalls it silently.

When testing with PyScripter and debugging, I get this:
[Dbg]>>>
Command Line: -ldebug remove "c:\waptdev\google-drive-file-stream-wapt.25.196.245.2031-4"
Removing c:\waptdev\google-drive-file-stream-wapt.25.196.245.2031-4 ...

uninstalling google-drive-file-stream
=== Removed packages ===
google-drive-file-stream
=== Error removing packages ===
google-drive-file-stream

And it launches the Google Drive File Stream uninstallation prompt as if it's not accepting the --silent option?

Regards,
Serge.

Re: Google Drive File Stream

Published: May 18, 2018 - 2:48 PM
by dcardon
sergead wrote: May 14, 2018 - 5:48 PM Thank you for your reply.

Actually, when I launch the uninstallation via the wapt console, it tells me the software is uninstalled without any errors, even though it isn't.
And if I manually run the command "%PROGRAMFILES%\Google\Drive File Stream\25.196.245.2031\uninstall.exe" --silent --force_stop in the Windows command prompt on the client, it uninstalls it silently.

When testing with PyScripter and debugging, I get this:
[Dbg]>>>
Command Line: -ldebug remove "c:\waptdev\google-drive-file-stream-wapt.25.196.245.2031-4"
Removing c:\waptdev\google-drive-file-stream-wapt.25.196.245.2031-4 ...

uninstalling google-drive-file-stream
=== Removed packages ===
google-drive-file-stream
=== Error removing packages ===
google-drive-file-stream

And it launches the Google Drive File Stream uninstallation prompt as if it's not accepting the --silent option?

Regards,
Serge.
I don't see any particular problem with your package. The only thing I'm unsure about is the shell variable %programfiles%. Could you test it using WAPT functions instead of this environment variable? Generally speaking, you should be wary of these variables because package installation is done in the "Local System" account, which can cause problems. In your case, it would look something like this:

Code: Select all

run(r'"%s\Google\Drive File Stream\25.196.245.2031\uninstall.exe" --silent --force_stop' % programfiles)
Sincerely,

Denis

Re: [SOLVED] Google Drive File Stream

Published: May 22, 2018 - 2:41 PM
by sergead
Thanks so much, it works after modifying %programfiles%, so that was indeed the problem.

Thank you.