Need help for Custom pop-up message

appackaging
New Contributor

Hi All - I was wondering if there is a code/script for pop-up message/alert that will indicate what software he/she has installed after the installation completes from self-service? Example, i install a couple of apps from the self-service and forgot what they are now after one app completed installation it will pop-out an alert message telling me what is installed. Thanks in advance.

1 ACCEPTED SOLUTION

rtrouton
Release Candidate Programs Tester

I've written a few scripts that may help here. I designed them for use as as After scripts for Self Service:

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

In all the scripts, you would use Parameter 4 to pass along the name of the application to the script. I've been using these scripts since this past summer and they've worked fine on Casper 9.x.

View solution in original post

12 REPLIES 12

chriscollins
Valued Contributor

well, you would have to apply that script to every policy/app that you are installing which would be annoying. If they are just picking ala-carte the software they want then no particular policy is going to know it was the last one ran so it would have to do a pop up for each software policy as its done running.

Why not just click the download arrow to see what policies you've run during that session?

appackaging
New Contributor

Thanks Chris. Yeah, it lead me to conclude the same thing you have suggested. I was just hoping that I can call out on my script some sort of identifier for the app. example on Windows, I can just search for the software name on the registry, call it's name out and show it on a pop-up alert.

rtrouton
Release Candidate Programs Tester

I've written a few scripts that may help here. I designed them for use as as After scripts for Self Service:

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/message_dis...

In all the scripts, you would use Parameter 4 to pass along the name of the application to the script. I've been using these scripts since this past summer and they've worked fine on Casper 9.x.

chriscollins
Valued Contributor

Yeah I think the problem with that is he wants the end user to be able to install like 5 different random things and then have only one popup at the end of all of it to say "You installed these 5 random things". If you use the scripts it will pop up for every single thing they install as they finish each individual install.

chriscollins
Valued Contributor

But I definitely have a use for these. Thanks for posting Rich :)

appackaging
New Contributor

Thank a lot rtrouton and chriscollin. I'll try your scripts rtrouton

mm2270
Legendary Contributor III

In Casper Suite 9 there is a User Interaction tab for policies that allows you to set up a policy complete message to display to the user. You may want to at least experiment with that to see if it fits your needs. I don't believe it can accept any script parameters though, so you'd need to manually set up each message to display what was just installed. There was a bug in an older rev I think that prevented the message from appearing when run from Self Service if I recall correctly, but I think that was addressed.

As an alternative, you could explore terminal-notifier for this. You could have a script send a simple Notification Center message after each install completes that the user can then later review by opening the NC panel. They would all be listed there under a single heading, similar to the built in process now in Casper. The latest build of terminal-notifier lets you easily spoof the sender to make it appear the messages are actually coming from Self Service.

scottb
Honored Contributor

@mm2270, I am on 9.32 and I setup some parameters into that "Interaction" section for a Self Service install and it doesn't work. Not sure if it has been fixed since 9.32, but I'll have to wait and see what happens when we go to the (mentioned elsewhere) 9.62+ later this year.

I did not try this for a policy that runs outside of Self Service yet.

mm2270
Legendary Contributor III

@boettchs - from the 9.4 release notes:

Self Service [D-006199] Fixed an issue that caused Self Service to fail to display user interaction messages when a policy is run.

So, it seems it was fixed in that version, which means you're just below the version needed to make this actually work.

scottb
Honored Contributor

@mm2270: Nicely done. I'd be all excited to upgrade and stuff if past upgrades on the enterprise Wintel boxes weren't so much "fun". Thanks for the followup.

appackaging
New Contributor

Thank a lot guys for the feed backs, I'll try all your suggestions.

cnoboa
New Contributor II

@rtrouton thanks for the response message came out great. I tried switching the alert note icon to another icon but it still shows up as that. Anyway of customizing the icon?