
Microsoft OneDrive
Paquet d’installation silencieuse pour Microsoft OneDrive
21.230.1107.0004-1
- package: tis-microsoft-onedrive
- name: Microsoft OneDrive
- version: 21.230.1107.0004-1
- categories: Utilities,Storage
- maintainer: WAPT Team,Tranquil IT,Gaëtan SEGAT
- editor: Microsoft
- locale: all
- target_os: windows
- impacted_process: OneDrive
- architecture: x64
- signature_date:
- size: 45.20 Mo
- installed_size: 206.81 Mo
- homepage : https://www.microsoft.com/microsoft-365/onedrive
- conflicts :
package : tis-microsoft-onedrive
version : 21.230.1107.0004-1
architecture : x64
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 : 18b63933-96d2-4558-8597-e5c93c0240ba
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 : tecNWhnl8eJL7IN38UI32KDq/P28XFY1zP/nwNWRkn87U/8bER2fFYgdj4Y6KCPA9uExfUmm0mCHd+SfOXojQJ3s4w8MpHRS/eJtd4TADoPECxcNzB3n9jgxsekoCXqpqLcfKpj4VhD/LeLvONYo2bWLU+i4ZVfJ79MPEk3xK63axPcEsRbBZkDbuKIBwP4m5heRtPhWU5apbouT+SxD0agICoE7fd23Bb7FYuMoVwQUghOBz2FXlplAUT9Qr61qqLuirHC6A0Xr91JYsRN1n0wnaau9bMDOwDXb+sfhd1Yp7fSY+eO/C4q1axj4yVIU2TqSBmLDzJou/I+EmPWbrw==
signature_date : 2021-12-20T14:28:01.075011
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
59bc66e0692126e8d0425668ab4862013f30d7e64cfe00f90d5e184d32f4758a : setup.py
37d3a507581bf094ef9e6b8fa976ca112a67e8a4d42cb20d8dc4ce191e3150f6 : OneDriveSetup-21.230.1107.0004.exe
0d407cea4d1a24e0ba18e77eff395c5d3abd728f69bd12ce60f9d0c4a2e99442 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
c909f16212449d46181e58911842bd887a40cf4b7dfda5d3d753bf1a1a875000 : luti.json
04b491ab4df57832850414eb2e5a418864f5d7f281f4a11ba50ce6b76231265c : WAPT/control