CyberCitizen wrote:
heybobby1 wrote:
Just wondering if you got this working or came up with another solution? I'm looking at it again, hoping to get something working.
Unfortunately no, the issue is they run under the account that is doing the installation eg installing as system or the scanning account, it can't display the message to the logged on user. That is where the MSG command is handy as it can be sent to all users, just looks a little dated.
Best I did was push install messages to the MSG command via text file so I can do larger messages and have it better formatted etc.
Thanks for the info. I had a play using psexec and got something working. I've only tested this as an action though as our deployments never get past performing preliminary checks, but that's another issue.
So as an action I called a PowerShell App Deployment Toolkit installer using psexec under the system account and interactive. The interactive bit seems to be the crucial ingredient here, allowing you to show notifications to signed in users while running under the system account. Here's the line I used, if it's of interest.
cmd.exe /K {actionpath}psexec.exe /accepteula \\{smartname} -s -i "\\<server>\<application>\Deploy-Application.exe" -DeploymentType Install -DeployMode Interactive
using a deployment package I think you'd do something more like this:
cmd.exe /c "\\<lansweeperserver>\lansweeper$\psexec.exe /accepteula -s -i \\<server>\<application>\Deploy-Application.exe -DeploymentType Install -DeployMode Interactive"