
Powerpoint mobile
Paquet d’installation silencieuse pour Powerpoint mobile
16001.11001.20041.0-1
- package: tis-powerpoint-mobile
- name: Powerpoint mobile
- version: 16001.11001.20041.0-1
- categories: Office
- maintainer: WAPT Team,Tranquil IT,Pierre Cosson
- editor: microsoft
- licence: proprietary
- locale: all
- target_os: windows
- architecture: x64
- signature_date:
- size: 171.43 Mo
- homepage : https://www.microsoft.com/fr-fr/p/powerpoint-mobile/9wzdncrfjb5q?activetab=pivot:overviewtab
package : tis-powerpoint-mobile
version : 16001.11001.20041.0-1
architecture : x64
section : base
priority : optional
name : Powerpoint mobile
categories : Office
maintainer : WAPT Team,Tranquil IT,Pierre Cosson
description : Free but limited version of Powerpoint
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.1
sources : https://www.microsoft.com/fr-fr/p/powerpoint-mobile/9wzdncrfjb5q?activetab=pivot:overviewtab
installed_size :
impacted_process :
description_fr : Version gratuite mais limitée de Powerpoint
description_pl : Versão gratuita mas limitada do Powerpoint
description_de : Kostenlose, aber eingeschränkte Version von Powerpoint
description_es : Versión gratuita pero limitada de Powerpoint
description_pt : Versão gratuita mas limitada do Powerpoint
description_it : Versione gratuita ma limitata di Powerpoint
description_nl : Gratis maar beperkte versie van Powerpoint
description_ru : Бесплатная, но ограниченная версия Powerpoint
audit_schedule :
editor : microsoft
keywords :
licence : proprietary
homepage : https://www.microsoft.com/fr-fr/p/powerpoint-mobile/9wzdncrfjb5q?activetab=pivot:overviewtab
package_uuid : 72688bb6-7021-48c7-8c46-edf17512ebe9
valid_from :
valid_until :
forced_install_on :
changelog : https://www.microsoft.com/fr-fr/p/powerpoint-mobile/9wzdncrfjb5q?activetab=pivot:overviewtab
min_os_version : 10.0
max_os_version :
icon_sha256sum : b01f3a57d5fb52e123aad07fbbdb983d27573bf93bb0a994085ab5b23a3d7464
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : Psq6TQuwTPJlUlEdaFDhmH1KwUu0E/hrf//9BJ5h6R8nyE4PmzGEL1+6Ic9gY4GxFWzPTlOqX9copEuy7neE4gjk3rV5rJMQ+crd08qnrDhu211X0g1xnmZgacE3uEpGKG86TqphJqzeHfMiA0jIFdQJHWXjZBrUjwNhjXe0bz+W+6uREbEjImSfL6VAl3Aj58AUQAxn6Bjg8umF4cvWJ+KfHeey/+5wy9zs7NR1MWvmEMSfcl8FwefxjnmZmJ2yrzJeW+Ud3py41CA7SPaziUyescELRASefVjbW+vL0jCr4n5tOCJoQMijrhg0zCCkx4F1968nIET3faqWrAjV1w==
signature_date : 2022-07-26T03:03:17.689738
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 requests
from bs4 import BeautifulSoup
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "Microsoft.Office.PowerPoint"
appx_package = "Microsoft.Office.PowerPoint"
appx_dir = makepath(programfiles, "WindowsAppsInstallers")
file_extension = "appxbundle"
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*%s*.%s" % (bin_contains, file_extension))[0]
bin_path = makepath(appx_dir, bin_name)
# Checking minimum Windows version
if windows_version() >= WindowsVersions.Windows10v1703:
# Copying the software
if not isdir(appx_dir):
mkdirs(appx_dir)
else:
for appx_file in glob.glob("%s/*%s*.%s" % (appx_dir, bin_contains, file_extension)):
if not package_version in appx_file:
remove_file(appx_file)
if not isfile(bin_path):
print("Copying: %s to: %s" % (bin_name, appx_dir))
filecopyto(bin_name, appx_dir)
else:
error(
"This Windows version (%s) need to be upgraded to minimum version (%s) to use this package"
% (windows_version(), WindowsVersions.Windows10v1703)
)
def uninstall():
# Declaring local variables
package_version = control.get_software_version()
bin_path = glob.glob(makepath(appx_dir, "*%s*.%s" % (bin_contains, file_extension)))[0]
# Uninstalling the package
remove_appx(appx_package)
if isfile(bin_path):
remove_file(bin_path)
if isdir(appx_dir) and dir_is_empty(appx_dir):
print("Removing: %s since he is empty" % (appx_dir))
remove_tree(appx_dir)
def session_setup():
# Declaring local variables
package_version = control.get_software_version()
app_name = control.name
bin_path = glob.glob(makepath(appx_dir, "*%s*.%s" % (bin_contains, file_extension)))[0]
bin_name = bin_path.split("\\")[-1]
# Installing the software in user env
appx_version = get_powershell_str("Get-AppxPackage -Name %s" % appx_package, "Version")
if not appx_version or appx_version < package_version or force:
print("Installing: %s" % bin_name)
run_powershell('Add-AppxPackage -Path "%s"' % bin_path)
else:
print("%s is installed in correct version (%s)" % (app_name, appx_version))
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
store_id = "9wzdncrfjb5q"
res = requests.post(
"https://store.rg-adguard.net/api/GetFiles",
"type=ProductId&url=%s&ring=RP&lang=fr-FR" % store_id,
headers={"content-type": "application/x-www-form-urlencoded"},
)
page = BeautifulSoup(res.content, features="html.parser")
for bs_search in page.find_all("a"):
if bin_contains in bs_search.text and ".%s" % file_extension in bs_search.text:
version = bs_search.text.split("_")[1]
latest_bin = bs_search.text
download_url = bs_search["href"]
break
if download_url.split("/")[2].endswith("microsoft.com"):
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
else:
print("Binary file version corresponds to online version")
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
result = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
else:
print("ERROR The retrieved url will not download from microsoft's servers")
# control.set_software_version(version)
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating or not update-package-sources
return result
def remove_appx(package, default_user=True):
r"""Uninstall and remove Windows AppX package from the computer in machine and user environnement
Args:
package (str): package name, asterisk character (*) can be used as joker
default_user (bool): Remove from image that will be installed for each new user
.. versionadded:: 2.2
"""
if running_as_admin() or running_as_system():
run_powershell('Get-AppxPackage "%s" -AllUsers | Remove-AppxPackage -AllUsers' % package)
if default_user:
run_powershell(
'Get-AppXProvisionedPackage -Online | Where-Object DisplayName -Like "%s" | Remove-AppxProvisionedPackage -Online -AllUsers' % package
)
else:
run_powershell('Get-AppxPackage "%s" | Remove-AppxPackage' % package)
def get_powershell_str(powershell_cmd, value=None):
r"""Get a value as string from the output of a powershell command
WARNING: Adding -AllUsers parameter may be necessary to make sure WAPT is enable to get the request value
Args:
powershell_cmd (str): Powershell command
value (str) : Value to get as string
.. versionadded:: 2.2
"""
if value:
return str(run_powershell("%s | Select-Object -ExpandProperty %s | Write-Host -NoNewline" % (powershell_cmd, value), output_format="text"))
else:
return str(run_powershell("%s | Write-Host -NoNewline" % powershell_cmd, output_format="text"))
59b9e14d67296819da4b8345811ee861abc3530d9a333f4b1cb49a1c9c3f570d : setup.py
b01f3a57d5fb52e123aad07fbbdb983d27573bf93bb0a994085ab5b23a3d7464 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
6df89a6dbba2d4a8ac304ce1dfb78b59d0edd06af878b20f8a3430c8fffeac4a : luti.json
a30346a905a8c2b225ad48f5b65fc22da009fe1115096df58596ab5661975a17 : Microsoft.Office.PowerPoint_16001.11001.20041.0_neutral_~_8wekyb3d8bbwe.appxbundle
348b355b341a4b134a5ccdd9d304f64458b5eaabd84652dac035aca95195c5f2 : WAPT/control