- package: tis-microsoft-onedrive
- name: Microsoft OneDrive
- version: 21.099.0516.0003-0
- categories: Utilities,Storage
- maintainer: WAPT Team,Tranquil IT,Gaëtan SEGAT
- editor: Microsoft
- locale: all
- target_os: windows
- impacted_process: OneDrive
- architecture: all
- signature_date:
- size: 35.54 Mo
- installed_size: 206.81 Mo
- homepage : https://www.microsoft.com/microsoft-365/onedrive
- conflicts :
package : tis-microsoft-onedrive
version : 21.099.0516.0003-0
architecture : all
section : base
priority : optional
name : Microsoft OneDrive
categories : Utilities,Storage
maintainer : WAPT Team,Tranquil IT,Gaëtan SEGAT
description : Save your files and photos to OneDrive and access them from any device, anywhere.
depends :
conflicts : tis-disable-onedrive
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources : https://www.microsoft.com/microsoft-365/onedrive/download
installed_size : 206811136
impacted_process : OneDrive
description_fr : Stockez vos fichiers et photos sur OneDrive pour y accéder depuis n’importe quel appareil, où que vous soyez.
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : Microsoft
keywords : cloud,file,one,drive,onedrive
licence :
homepage : https://www.microsoft.com/microsoft-365/onedrive
package_uuid : bb76a3bc-25d7-46dc-a185-f821749d99c4
valid_from :
valid_until :
forced_install_on :
changelog : https://support.microsoft.com/office/onedrive-release-notes-845dcf18-f921-435e-bf28-4e24b95e5fc0
min_os_version :
max_os_version :
icon_sha256sum : 0d407cea4d1a24e0ba18e77eff395c5d3abd728f69bd12ce60f9d0c4a2e99442
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : ju2nkAwNb/c8skomut/NQO84ui7dk1uQn6QnlyAJqtfvNLRey5kR89WRNFCQRC/3iuCw5qYG8jzRQ/1Kfl5tpd0j9it37/N+yQPVhJIoLiw+d8fvIdji1iQDXkrKJIb0WVGVxo/+ZXJZlmIgaS2rkLaowa+cJG84e7w4GqATn7aulTLeNSDK6MlJTM4QfzI46TN/mvXU2hozcpOqXZWzkd8ftl4LygvAcRnHhmAs278bENtlTL7jHbjK+DI+utZFT1sVnxyeMCxCgrTVUZ42gn7aJ4l4GhetJ9enKvDRJWRAZDnt8trIrblqzngpRQCtUqs9S7XmRYZ4RdqwAGnk3w==
signature_date : 2021-06-24T17:14:55.436161
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = 'OneDriveSetup'
silent_args = '/allusers /silent'
app_uninstallkey = 'OneDriveSetup.exe'
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob('*%s*.exe' % bin_contains)[0]
# Installing the package
print("Installing: %s" % bin_name)
install_exe_if_needed(bin_name,
silentflags=silent_args,
key=app_uninstallkey,
min_version=package_version,
)
def session_setup():
# Declaring local variables
task = r"\OneDrive Per-Machine Standalone Update Task"
print("Disabling: auto-update-check")
# Disabling application scheduled tasks
if task_exists(task):
try:
disable_task(task)
except:
print("Unable to disable the task: %s" % task)
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
bin_name_sub = bin_contains + '-%s.exe'
url = 'https://support.microsoft.com/office/onedrive-release-notes-845dcf18-f921-435e-bf28-4e24b95e5fc0'
url_dl = 'https://go.microsoft.com/fwlink/?linkid=844652'
# Getting latest version from official sources
print("URL used is: %s" % url)
for bs_search in bs_find_all(url, 'a', 'class', 'ocpExternalLink', proxies=proxies):
if bs_search['href'] == url_dl and not 'OneDrive ' in bs_search.string:
version = bs_search.string
latest_bin = bin_name_sub % version
break
print("Latest %s version is: %s" % (app_name, version))
print("Download url is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Checking version from file
version_from_file = get_version_from_binary(latest_bin)
if Version(version) != Version(version_from_file) and version_from_file != '':
print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
os.rename(latest_bin, bin_name_sub % version_from_file)
version = version_from_file
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
result = True
control.version = '%s-%s' % (Version(version), control.version.split('-', 1)[-1])
#control.set_software_version(Version(version))
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating or not update-package-sources
return result
a85977d59a9109cdd305ca6d10854bc0ca51fbbfb36d8171b4c7b732217e1245 : OneDriveSetup-21.099.0516.0003.exe
59bc66e0692126e8d0425668ab4862013f30d7e64cfe00f90d5e184d32f4758a : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
0d407cea4d1a24e0ba18e77eff395c5d3abd728f69bd12ce60f9d0c4a2e99442 : WAPT/icon.png
f11fcec1a00694c91e5cb305ecbc245dc0c5cbfd07b7b6afa64fb5e15174315e : WAPT/control