Symantec Management Platform (Notification Server)

 View Only
  • 1.  Message to User when installation is finish

    Posted May 20, 2011 02:59 AM

    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



  • 2.  RE: Message to User when installation is finish

    Posted May 20, 2011 05:15 AM

    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.



  • 3.  RE: Message to User when installation is finish

    Posted May 20, 2011 05:25 AM

    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?



  • 4.  RE: Message to User when installation is finish

    Posted May 20, 2011 11:33 AM

    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.



  • 5.  RE: Message to User when installation is finish

    Posted May 20, 2011 12:30 PM

    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.



  • 6.  RE: Message to User when installation is finish

    Posted May 23, 2011 04:22 PM

     

    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;en-us;307729 for more information.


  • 7.  RE: Message to User when installation is finish

    Posted Jun 04, 2011 01:22 AM

    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).



  • 8.  RE: Message to User when installation is finish

    Posted Jun 08, 2011 12:02 PM

    "...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.