Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

pre execute script to bypass user dialog

what do you think about a "before" script

It would be nice if the display user interaction dialog is dynamic
Example.
if i create a package with a a user dialog i do this mainly to inform the user that my package will end some processes (IE Explorer etc.)
This isn't necessary if nobdy is logged on.
But if i deploy a package with this dialog - the package won't be installed, because the client waits for user interaction.
Timeout(in package)value isn't comfortable for this because i don't want to end user applications without his knowlege.
Solution

  1. the ocs-client should allow to start a script BEFORE the first user dialog.
    This script query some info (somebody logged in, processes are running - or similar).
    If this script returns a zero (means nobody is logged in, or no processes are running) NO Dialog will be displayed
    What i even can do that the "before" script checks if a specific user is logged in - and if that is the case i also do not display a message on the client because that user will be used to install a new pc.

I have programmed this manually with a script, but i can't use the ocs Dialog and must to circumvent the session 0 isolation

see here

https://github.com/OCSInventory-NG/OCSInventory-ocsreports/issues/496

in OCS Inventory NG agent for Windows by (22.6k points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...