You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-02 13:57:00

dgs
Member
Registered: 2022-06-02
Posts: 3

GLPI Inventory - Deploy package

Hello

We recently updated to GLPI 10 and are in the process of changing from fusioninventory to using GLPI Inventory with the GLPI Agent.

As we are trying to get the package deployment working, we are coming across some errors during task execution.

Under the menu Deploy => Package management we created a new package, added the file (an msi file).

Under Tasks => Task management we created a new task, added the package via package deployment and chose our created package.

If we activate the task, the package downloads without errors, but we cannot seem to get the program to install.

We have tried many things in the Package itself under package actions, for example under Actions we added Command and entered msiexec.exe /i program.msi /quiet
But that doesn't seem to work, when the task runs, i get a success, but in the task log i get an error "exit status 1603", and this is the log:

2022-06-02 11:27:06    Ok    job successfully completed
2022-06-02 11:27:06    Running    Actions:action #1, processing success
2022-06-02 11:27:06    Running    Actions:action #1: ok, no check to evaluate.
2022-06-02 11:27:06    Running    Actions:action #1: exit status: `1603'
2022-06-02 11:27:06    Running    Actions:action #1: --------------------------------
2022-06-02 11:27:06    Running    Actions:action #1: C:\Program Files\GLPI-Agent\var\http..__server_marketplace_glpiinventory\deploy\workdir\62989e4a7dd1c>exit 1603
2022-06-02 11:27:06    Running    Actions:action #1:
2022-06-02 11:27:06    Running    Actions:action #1: C:\Program Files\GLPI-Agent\var\http..__server_marketplace_glpiinventory\deploy\workdir\62989e4a7dd1c>msiexec.exe /i program.msi
2022-06-02 11:27:06    Running    Actions:action #1:
2022-06-02 11:27:06    Running    Actions:action #1: C:\Program Files\GLPI-Agent\perl\bin>cd "C:\Program Files\GLPI-Agent\var\http..__server_marketplace_glpiinventory\deploy\workdir\62989e4a7dd1c"
2022-06-02 11:27:06    Running    Actions:action #1:
2022-06-02 11:27:06    Running    Actions:action #1: ================================
2022-06-02 11:27:06    Running    Actions:action #1: Started cmd: msiexec.exe /i program.msi
2022-06-02 11:27:06    Running    Actions:action #1: ================================
2022-06-02 11:27:06    Running    Files preparation:success
2022-06-02 11:27:05    Running    Files download:success
2022-06-02 11:27:05    Running    Files download:program.msi downloaded
2022-06-02 11:27:03    Running    Files download:fetching program.msi
2022-06-02 11:27:03    Running    Files download:downloading files
2022-06-02 11:27:03    Running    Checks:all checks are ok
2022-06-02 11:27:03    Running    Checks:starting

How can we get the task to successfully install a program, wether it's an msi file or an exe file?

Kind regards

Last edited by dgs (2022-06-02 13:58:30)

Offline

#2 2022-06-02 15:27:30

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI Inventory - Deploy package

Hi dgs,

maybe agent log can help. But you may also try to use a msiexec log option like this:

msiexec.exe /i program.msi /L*V "C:\package.log" /quiet

as explained in official msiexec documentation.

Analyzing the log can then help you to understand what's the problem behind this error.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2022-06-02 15:32:49

grenona
Member
From: Canada
Registered: 2021-08-11
Posts: 48

Re: GLPI Inventory - Deploy package

If you try to install manualy the MSI, did it work ?
Maybe permission issue (run as Administrator) for the task

Offline

#4 2022-06-02 15:40:15

dgs
Member
Registered: 2022-06-02
Posts: 3

Re: GLPI Inventory - Deploy package

gbougard wrote:

Hi dgs,

maybe agent log can help. But you may also try to use a msiexec log option like this:

msiexec.exe /i program.msi /L*V "C:\package.log" /quiet

as explained in (i am not allowed to post links).

Analyzing the log can then help you to understand what's the problem behind this error.

Ty for the response, i will try to get more detailed log.

Offline

#5 2022-06-02 15:40:53

dgs
Member
Registered: 2022-06-02
Posts: 3

Re: GLPI Inventory - Deploy package

grenona wrote:

If you try to install manualy the MSI, did it work ?
Maybe permission issue (run as Administrator) for the task

Yes, manually the MSI installs fine, even from windows command line with additional parameters.
How can i make it so GLPI runs it as administrator?

Offline

Board footer

Powered by FluxBB