Video Screencast Help

Message to User when installation is finish

Created: 19 May 2011 • Updated: 20 May 2011 | 7 comments

Hello Guys,

i want to rollout a Update for SAP Gui. I Write a message to the user with the Agent display description that he had to close SAP and the click on the start now button.

 

Now the question is can a give the user a message when the task is finished?

Best Regards 

Dominik

Comments 7 CommentsJump to latest comment

EdT's picture

Is the update in the form of an MSI or MSP file ?  If so, you could use the /qb! command line option that display a progress dialog.

The alternative method is to create a "wrapper" script which you run to install your program. The wrapper script is run by NS, and it, in turn, launches the update you are deploying. When the update is finished, control returns to the wrapper script, which can then display a "Finished" message using a system modal dialog box so that it appears on top of any other windows.  However, all this is dependent on the degree to which the installation agent allows an installer to interact with the desktop.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

dominik_moisi's picture

it is a exe file. I created it with the sap packager utility. The problem i have is that i install it with a different user than the user who is logged in because the user who is logged in has no administartor rights. I have already tried with a cmd file who displays a finished message but this message will show under the user i run the install. So is there a way that the NS itself display a message?

EdT's picture

I don't believe you can do this with NS, but then in fairness I am not current on the latest releases.

However, the install is running in a different context entirely to the logged in user, so the client would need to be connected as two different users in order to be able to transfer status information from one context to the other.

On the other hand, we have some bright sparks on Connect so maybe another member can suggest a workaround for you.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

nicoled18's picture

As part of the software delivery policy, you can add on a task at the end that is a vbscript to pop up a message, if that would work.

AngelD's picture

 

You can use the DisplayBalloon method of the AeXAgentLib class.
Check out the below link for examples
http://www.altirigos.com/vbulletin/asdk-ssdk/6097-display-message-end-users-computer.html
 
Have in mind that:
This method only works if the Microsoft balloon feature is enabled in the registy. See http://support.microsoft.com/default.aspx?scid=kb;... for more information.

KSchroeder's picture

I agree with EdT's original suggestion.  Nearly every package we deploy (unless it is a simple MS hotfix that doesn't require a reboot) has a .vbs wrapper script around it.  We use the VBS to perform various setup tasks, etc, then use a Wscript.Shell.Popup() method at the end to notify the user that the task is done.  If you're a fancy packaging guy like Ed or AngelD you can build your VBS into your MSP...but we're not so sophisticated! laugh  You can also prompt them up-front to close SAP (and/or forcibly close it with WMI or taskkill.exe after some timeout if they don't do it).  Our script also kicks off the built-in Inventory tasks after the install completes so we can immediately update inventory data without waiting until the next day.

Also, not sure why you would want to run as a different user unless you need to access some network share; just set the Program to run as "System" and check the "user interaction required" checkbox (otherwise sometimes you don't see the script dialogs, etc).

Thanks,
Kyle
Symantec Trusted Advisor

For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.

Shane Faber's picture

"...Our script also kicks off the built-in Inventory tasks after the install completes so we can immediately update inventory data."

I've been wondering how to script this... I've done the Job with a Quick delivery task followed by the Gather Inventory task but would like to know how to use a vb script to do it.