Charlemagne Compétences
Silent install package for Charlemagne Compétences
7.8.0.0-10
Education
Education
- package: tis-charlemagne-competences
- name: Charlemagne Compétences
- version: 7.8.0.0-10
- categories: Education
- maintainer: WAPT Team,Tranquil IT, Flavien Schelfaut
- editor: Aplim
- locale: all
- target_os: windows
- impacted_process: Competences.exe
- architecture: all
- signature_date:
- size: 44.55 Mo
- homepage : https://www.aplim.fr
- depends:
package : tis-charlemagne-competences
version : 7.8.0.0-10
architecture : all
section : base
priority : optional
name : Charlemagne Compétences
categories : Education
maintainer : WAPT Team,Tranquil IT, Flavien Schelfaut
description : Charlemagne Competences
depends : tis-charlemagne-outils
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.1
sources : https://api.ecoledirecte.com/v3/c/0/download/majcharlemagne.awp?verbe=get&chemin=MiseAJour\V2\&fichier=wCompetences.exe
installed_size :
impacted_process : Competences.exe
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : Aplim
keywords :
licence :
homepage : https://www.aplim.fr
package_uuid : 53ceba8c-86bc-4a6b-8577-ca98c4164805
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : 2a92d21c156d1cc53de54747671ed7730bbb4681d5a576dfda1553d0b6b54975
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2026-04-01T17:02:04.000000
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
signature : wfW5q9jEh2ZnhskvX4x/Ycy+5SLCHE8sx60ECB9QI/rz4qWEr+emm4hiHdoJQYW07cg64a3B4ToKFP9oK+vTaAc6Q73ifspdUGK2UICxtJBhGFxec0rPtr+sc72HK2ko1aRmhLBRrw/VHJ7/dGglWH2JF8moFMCy8zw2lPj7D1hdKzIO5p6nk0H+FXdqWDwc6G5osA0fpv9AIhjAafm1fYGI0wv3OpV0Uryh927jFehVxvRp1yWu54i3G5nRUPbdXoI+mAHNQNLsYqx5Low7zd2cUCth4C9y464V7DZb4WfxmpWiXgEfraQPAw5FHHy3NAE66KrSBu+6uL8CYN+PAQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name = "charlemagne_competences.exe"
silent_args = "/S"
desktop_shortcut_name = 'Charlemagne Compétences'
path_folder = makepath(programfiles32(),'alcuin')
bin_exe = makepath(path_folder, 'Competences.exe') # Edit here the name of the executable
def install():
# Initializing variables
package_version = control.version.split("-")[0]
# Installing the package
print(f"Installing: {bin_name}")
if force or not isfile(bin_exe) or Version(get_version_from_binary(bin_exe)) < Version(package_version):
killalltasks(control.impacted_process)
run(f'"{makepath(basedir, bin_name)}" {silent_args}')
if not isfile(bin_exe):
error('error %s not found' % bin_exe)
bin_version = get_version_from_binary(bin_exe)
if Version(bin_version) < Version(package_version):
error('Version file for %s is %s' % (bin_exe,bin_version))
remove_desktop_shortcut(desktop_shortcut_name)
def uninstall():
remove_desktop_shortcut(desktop_shortcut_name)
remove_file(bin_exe)
def audit():
if not isfile(bin_exe):
print(f"The executable can't be found here : {bin_exe}")
return "ERROR"
bin_version = get_version_from_binary(bin_exe)
package_version = control.version.split("-")[0]
if Version(bin_version) < Version(package_version):
print('Version file for %s is %s' % (bin_exe,bin_version))
return "ERROR"
if Version(bin_version) > Version(package_version):
print('Version file for %s is %s' % (bin_exe,bin_version))
return "WARNING"
print("The installation has been done correctly")
return "OK"
# -*- coding: UTF-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import waptlicences
targeted_text = "wCompetences"
latest_bin = "charlemagne_competences.exe"
api_version_url = "https://apic.ecoledirecte.com/v3/c/maj/versions.awp?verbe=get&mc=Outils"
api_download_url = f"https://api.ecoledirecte.com/v3/c/0/download/majcharlemagne.awp?verbe=get&chemin=MiseAJour/V2/&fichier={targeted_text}.exe"
user_agent = "CHARLIE"
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
app_name = control.name
version = requests.post(api_version_url, headers={"User-Agent": user_agent}, proxies=proxies).json()['data'][targeted_text]
print(f"Latest {app_name} version is: {version}")
print(f"Download url is: {api_download_url}")
for f in glob.glob('*.exe'):
if Version(get_version_from_binary(f)) < Version(version):
remove_file(f)
if not isfile(latest_bin):
print(f"Downloading: {latest_bin}")
package_updated = True
wget(api_download_url, latest_bin, proxies=proxies)
else:
print(f"Binary is present: {latest_bin}")
expected_issuer = 'Aplim'
sign_name = waptlicences.check_exe_signing_certificate(latest_bin)[0]
if sign_name != expected_issuer:
error(f'Bad issuer {sign_name} != {expected_issuer} ')
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print(f"Software version updated (from: {control.get_software_version()} to: {version})")
package_updated = True
else:
print(f"Software version up-to-date ({version})")
control.set_software_version(get_version_from_binary(latest_bin))
control.save_control_to_wapt()
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
27fc4161af5da179e9c193f31239c0b31ff9ad2cc910721cef1a92cb4c508fde : WAPT/control
2a92d21c156d1cc53de54747671ed7730bbb4681d5a576dfda1553d0b6b54975 : WAPT/icon.png
007940491cfadf7c8bffc76d466041a7f5705a2fa19ae7b6f9d032a62afd8888 : charlemagne_competences.exe
d9e4406cf2be405300dc79fea35e6b7c43ce0c217789c2e3b2d7899ff2c7e3b0 : luti.json
02f949230eb3ee695d67a1a6500041d50ea20b8d40521e2a4bb87013a0a69e4c : setup.py
cd073da75c508837c926c59e6b77ccd79b3710f203fc9aa80edace311e9f39ca : update_package.py