Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4602

pre execute script to bypass user dialog

$
0
0

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


Viewing all articles
Browse latest Browse all 4602

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>