Charlemagne Education Nationale
Paquet d’installation silencieuse pour Charlemagne Education Nationale
12.12.0.0-9
Education
Education
- package: tis-charlemagne-rectorat
- name: Charlemagne Education Nationale
- version: 12.12.0.0-9
- categories: Education
- maintainer: WAPT Team,Tranquil IT, Flavien Schelfaut
- editor: Aplim
- locale: all
- target_os: windows
- impacted_process: EducationNationale.exe
- architecture: all
- signature_date:
- size: 38.02 Mo
- homepage : https://www.aplim.fr
- depends:
package : tis-charlemagne-rectorat
version : 12.12.0.0-9
architecture : all
section : base
priority : optional
name : Charlemagne Education Nationale
categories : Education
maintainer : WAPT Team,Tranquil IT, Flavien Schelfaut
description : Charlemagne Education Nationale
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=wRectorat.exe
installed_size :
impacted_process : EducationNationale.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 : ef6c42cc-b9a1-4b64-b4bf-b5727da1f120
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : bcf615d29d08b19d6d8d8fbb8c351cd9e61f7cb78bcd9b218ebb3d3728d3c8e1
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2026-02-23T16:06:07.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 : ACpjjG/fr4k4a8RbWTq3HES/qY2Ws5v7nNmCuPVskT0Uf5XY2U8+PFA08qDNPYEnwf8k8cTvQek0KaiJivEaRWMZc7QPMcY6Tr3xMMQVfEZayrC2Kru515CJX2UDFwep2jVzX7qvB8jHLjSrygKAPW4Igswect1qF5ityJKX1kejm53+eE2Fnipz39/H2LhVKPVgtcFqR/SLjdyvTon9HHdpNsg5SiVGSN3kK1q0dKAyGhvcbJOl5JzbCgKHCxXzG9XGTnLUBIzMsObW+DRtD6dXRyhjkd7UR+v1QDOTIti/ohdfwdh9LuURIxyR1xxJxpAw0xzfIYygej1bh+YQqg==
# -*- 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_rectorat.exe"
silent_args = "/S"
path_folder = makepath(programfiles32(),'alcuin')
bin_exe = makepath(path_folder, 'EducationNationale.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))
def uninstall():
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 = "wRectorat"
latest_bin = "charlemagne_rectorat.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
d8ff29d16cab5d3b7809f6da81cb9b8e5cf41a279b0c0403de79ad5da1d1d6ab : WAPT/control
bcf615d29d08b19d6d8d8fbb8c351cd9e61f7cb78bcd9b218ebb3d3728d3c8e1 : WAPT/icon.png
0e694f0457ba55c335ea7167d5854c1d06eb448fe9b802f8bc1090ca7f190ee5 : charlemagne_rectorat.exe
7affc25743c53edd7a0b476502a8ba392b24a1b1e2ddfd32a295d4ad5bd35dcc : luti.json
97e172694078f580cc9e51c499323506ff5482447d5c1f93fbacba11f1cd8c5c : setup.py
8146eea2be41fea6a0ce48ce64fcba629de67305ef7b63f7286b456373477767 : update_package.py