tis-soluvote icon

Soluvote

Paquet d’installation silencieuse pour Soluvote

2021.0531-5

  • package: tis-soluvote
  • name: Soluvote
  • version: 2021.0531-5
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: France Election
  • licence: proprietary_restricted,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: Soluvote
  • architecture: all
  • signature_date:
  • size: 71.96 Mo
  • installed_size: 209.58 Mo
  • homepage : http://www.france-election.fr/logiciel.php

package           : tis-soluvote
version           : 2021.0531-5
architecture      : all
section           : base
priority          : optional
name              : Soluvote
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : SoluVote is an election results centralization and communication software. It enables automatic calculation (with details) of the distribution of seats in a list ballot and automatic generation of animations or data tables
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://soluvote.com/?page_id=37
installed_size    : 209575754
impacted_process  : Soluvote
description_fr    : SoluVote est un logiciel de centralisation et de communication des résultats électoraux. Il permet le calcul automatique (avec détails) de la répartition des sièges dans un scrutin de liste et la génération automatique d'animations ou de tableaux de données
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : France Election
keywords          : election,centralization
licence           : proprietary_restricted,wapt_public
homepage          : http://www.france-election.fr/logiciel.php
package_uuid      : a470a842-dbaf-47d2-b6b8-fc0e5b716756
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 470de2b852bde2efab1ebd9beef0e1bf50e27860d31d1dd036b165799483bfae
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : jt/okI8QmGPRfVhVDbkJBm0vXkammeMGM0fkuUJDq7bJVDjKKor2IQqkWsq4pGrVA2S3d3qi2jcUd1xCajVaq7XlHJZeiAlqbAbxKgFekMk44D7VUwle6nvHfg3QT15XfdagILifY5fIRX5VV81sUugjpykOiHMwOYG283aw3yxEOeBdTV+zXlZlzDU7A0O/q9AZ3+fmovV/L9HIjWBDMo5hJysqZiWa/Yw33tHcMFXi07O/t+wk0kpWlgexaxH5g0NrLdIeFbxAJZ2eOlefF9mG/Us2gkWBzLQpu9lAcxoy+d7jfgggurfyxqLKMZDPrF4EqD8/+Ja+Lo+Rc26owA==
signature_date    : 2024-05-05T15:00:10.569575
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 *

"""{
   "key":"{554590C3-EE90-40F2-9D20-ACD78AE4A7D5}_is1",
   "name":"Soluvote version 2021-0531",
   "version":"2021-0531",
   "install_date":"2024-04-30 00:00:00",
   "install_location":"C:\\SOLUVOTE\\",
   "uninstall_string":"\"C:\\SOLUVOTE\\unins000.exe\"",
   "publisher":"France Election",
   "system_component":0,
   "win64":false
  }"""


path_install = makepath(systemdrive, "SOLUVOTE")

def install():
    install_exe_if_needed(
        "Soluvote.exe",
        "/VERYSILENT /NORESTART /SUPPRESSMSGBOXES",
        key="{554590C3-EE90-40F2-9D20-ACD78AE4A7D5}_is1",
        min_version=control.get_software_version(),
        get_version=get_version,
        
    )
    # filecopyto("SOLUVOTE.ini", "c:\soluvote")
    create_desktop_shortcut("Soluvote", makepath(path_install, "Soluvote.exe"))
    if isfile(makepath(path_install, "TeamViewerQS.exe")):
        os.remove(makepath(path_install, "TeamViewerQS.exe"))


def get_version(key):
    return key["version"].replace("-", ".")


def uninstall():
    # run(r'"C:\SOLUVOTE\unins000.exe" /verysilent')
    remove_tree(path_install)
    remove_desktop_shortcut("Soluvote")

# -*- coding: utf-8 -*-

from setuphelpers import *
from setupdevhelpers import *
from waptutils import get_sha256
from urllib.parse import urlparse, urljoin, quote


def update_package():
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    binaries_dict = {
        "Soluvote.exe": "92740cff25c2c42d5ffed37fbf618f33c7a64710cca62808abcc9237ef0ad0a0",
        # "bin_name": "sha256",
    }

    for bin_name in binaries_dict:
        # http is ok since we are verifying sha256
        download_url = "http://srvtemplates.ad.tranquil.it/binary_cache/" + quote(bin_name)
        sha256 = binaries_dict[bin_name]
        if isfile(bin_name):
            if get_sha256(bin_name) != sha256:
                remove_file(bin_name)
        print("Download URL is: %s" % download_url)
        if not isfile(bin_name):
            print("Downloading: %s" % bin_name)
            wget(download_url, bin_name, sha256=sha256, proxies=proxies)
        else:
            print("Binary is present: %s" % bin_name)

    return package_updated

0eb4987e5d53e3f7acbe02a39646899e4bca0e15bfff9354cb8069ff52614745 : setup.py
ab51f4fd995611fd6ad4eb48b4f44480452e2228c75506203d52f5899ad2ed83 : update_package.py
470de2b852bde2efab1ebd9beef0e1bf50e27860d31d1dd036b165799483bfae : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a8b2166ecf36a19618a20dd0326418598e3db0300150091b07cb937a11558bbb : luti.json
1b173979aa1dec7fe3d1b9e6658dd51186828167067a0b8a9eaec3ee2045faec : SOLUVOTE.INI
92740cff25c2c42d5ffed37fbf618f33c7a64710cca62808abcc9237ef0ad0a0 : Soluvote.exe
715e85b7ba7464d5174adfca6ddb4504a540f2ee6f33de2892547d12d8d797aa : WAPT/control