WindowsAgent icon indicating copy to clipboard operation
WindowsAgent copied to clipboard

User Message - react on circumstances

Open sokatra opened this issue 6 years ago • 2 comments

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General information

Operating system :
Windows 7 - X64

OCS Inventory information

Windows agent version : 2.4.0

Problem's description

It would be great if i can display a user message depending on for example if someone is logged on or not. In the case nobody is logged on - i can deploy something completely silently if there was a method to react on environment. To do this with version 2.4.0 i have to use a special program to circumvent "session 0 isolation" aka serviceui.exe to display a message. So i need a ocs-inventory method to not only hardcode a static user message in the deployment. For example i normally deploy a package with the message "please close program xy" but the program isn't running. So the dialog is needless. Perhaps it is better to script this with serviceui.exe - but it isn't easy to find the correct "user session" in computers with more then 2 logged in users"

Inventory log file ( optional )

Use github cloud or trusted upload website

sokatra avatar Dec 18 '18 09:12 sokatra

perhaps it would be the best if the implementation of the agent can react on multiple circumstances with a before script similar to this https://github.com/OCSInventory-NG/OCSInventory-ocsreports/issues/496 so if you can program something universal for this problem would be nice. kind regards

sokatra avatar Jan 09 '19 08:01 sokatra

what is also interesting .. some sort of "Installation completion need user action:" this manage appears everytime .. because the agent does not differentiate if there is a success or an error code after deploying software. The agent can't display another message if somethings goes wrong. Depending on error code the agent should be able to display different messages. It must be programmed in a way that a later shutdown install isn't affected. And in a way that further conditions are interpreted if a someone develops a new idea. With shutdown install i mean a logic that ocs-inventory is able to install packages on shutdown .. perhaps there the packages need to be more silent. So in principle what is needed to implement a software model which is able to

  1. get variables on each deploy .. which the agent can interprete
  2. agent should react on conditions "someone logged in" .. OS is 32 or 64 bit an so on.
  3. Displayed message should react on error code I know that it is not easy to implement .. but it would help the project i think. right now i am scripting everything with my own tools which can display messages to the user.

Kind regards

sokatra

sokatra avatar Sep 28 '20 10:09 sokatra