Bonjour,
J'essai depuis plusieurs jours d'installer des extensions par batch pour wpkg sous serveur sambaedu;
Voici une partie de ce paquet:
Commandes avant une mise à jour:
"%ComSpec% /C %Z%\wpkg\tools\pskill.exe /accepteula -t soffice || exit 0"/>
"%ComSpec% /C "%ProgramFiles%\LibreOffice 3\program\unopkg.com" remove --shared CmathOOo || exit 0"
"%ComSpec% /C "%ProgramFiles%\LibreOffice 3.4\program\unopkg.com" list --shared CmathOOo || exit 0"
"%ComSpec% /C "%ProgramFiles%\LibreOffice 3.4\program\unopkg.com" remove --shared CmathOOo|| exit 0"
"%ComSpec% /C if exist "%SystemDrive%\netinst\locmath.txt" del /F /Q "%SystemDrive%\netinst\locmath.txt""
Commandes d'installation:
"%ComSpec% /C If Not Exist "%ProgramFiles%\LibreOffice 3.4\program\unopkg.com" exit 1"
"%ComSpec% /C xcopy /Q /I /E /Y %Z%\packages\libreoffice\CmathOOo.oxt %TMP%"
<!-- Arrete LibreOffice s'il tournait -->
"%ComSpec% /C %Z%\wpkg\tools\pskill.exe /accepteula -t soffice || exit 0"
install cmd="%ComSpec% /C %Z%\wpkg\tools\pskill.exe /accepteula -t unopkg || exit 0"
"%ComSpec% /C If exist "%HOMEPATH%\Application Data\LibreOffice\3\.lock" del /F /Q "%HOMEPATH%\Application Data\LibreOffice\3\.lock""
""%ProgramFiles%\LibreOffice 3.4\program\unopkg.com" add -v --shared --suppress-license "%TMP%\CmathOOo.oxt" --log-file "%SystemDrive%\netinst\locmath.txt""
Tout semble passer sauf la dernière ligne d'installation qui me renvoie toujours l'erreur 1
Pourtant celle-ci fonctionne parfaitement si je la lance à partir d'un compte dans une console dos sous xp.
Ces commandes sont lancés par un administrateur local qui a les bons droits
Je bloque vraiment sur le sujet
Merci de votre aide.
Cordialement
Libreoffice 3.4.5 stable
