Je tente d'installer un logiciel "DR" ayant besoin des arguments suivants :
- PATHRENSEIGNE='"1"'
- TYPEINSTALL"="PORTABLE"
- EXE="C:\EIC\DR\Application"
- DONNEES="C:\EIC\DR\Application\DONNEES"
- DONNEESRESEAU="\\monserveur\SRV\DRData"
J'ai donc créée le fichier setup.py comme suit :
Code : Tout sélectionner
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
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
uninstallkey = ["{61D2EDA6-1B60-49A2-9167-159BA73B2897}"]
def install():
# Declaring local variables
install_laptop_properties = {
"PATHRENSEIGNE":'"1"',
"TYPEINSTALL":'"PORTABLE"',
"EXE":"C:\EIC\DR\Application",
"DONNEES":"C:\EIC\DR\Application\DONNEES'",
"DONNEESRESEAU":"\\monserveur\SRV\DRData'",
}
# Installing the software
print("Installation: DR")
install_msi_if_needed('DR.msi', properties = install_laptop_properties)
Code : Tout sélectionner
CRITICAL Fatal error in install script: CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "DR.msi" PATHRENSEIGNE="1" TYPEINSTALL="PORTABLE" EXE=C:\\EIC\\DR\\Application\ DONNEES=C:\\EIC\\DR\\Application\\DONNEES DONNEESRESEAU=\\\\fichiers.wizzyoo.info\\WZY\\DRData' returned non-zero exit status 1603.
- Le fait que les anti-slash sont dédoublés pose-t-il problème pour l'installation ?
- Comment puis ajouter une option /L*v "log.log" pour avoir les logs msi de l'installation ?