[SOLVED] Google Drive File Stream

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
sergead
Messages: 4
Registration: May 14, 2018 - 3:21 p.m.

May 14, 2018 - 3:30 PM

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.
Last edited by sergead on May 22, 2018 - 2:47 PM, edited 1 time.
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

May 14, 2018 - 5:10 PM

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
sergead
Messages: 4
Registration: May 14, 2018 - 3:21 p.m.

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 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.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 18, 2018 - 2:48 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
sergead
Messages: 4
Registration: May 14, 2018 - 3:21 p.m.

May 22, 2018 - 2:41 PM

Thanks so much, it works after modifying %programfiles%, so that was indeed the problem.

Thank you.
Locked