Scripting Question

Ho can I display notifications when deploying software?

06/04/2012 1410 views

I have software that I need to let the users know when it is being updated. If I dont and they reboot their machine it screws it up. Someone that used to do the job I do here made some .exe that would simply pop up a window with a message in it by calling it in a batch file. Any recommendations on making one of these .exes? I have visual studio but have zero experience with it. 

Thanks in advance.

Answer Summary:
0 Comments   [ + ] Show comments


Community Chosen Answer


 I've used http://www.autoitscript.com/site/ in the past.


 $answer = MsgBox(49, "Reboot", "This software requires a reboot to finish. Click OK to reboot now")

If $answer = 2 Then
if $answer = 1 then Shutdown (6)

Answered 06/05/2012 by: dugullett
Red Belt

All Answers


Here's a vbsscript that will create a window, you just need to add a call to shutdown -r t -now() <- it's a windows function.

Set WshShell = CreateObject("WScript.Shell")

intButton = WshShell.Popup ("Click a button to proceed.", 5, , 2 + 48)

select case intButton
  case -1
    strMessage = "You did not click any button within the 5 seconds allotted."
  case 3
    strMessage = "You clicked the Abort button."
  case 4
    strMessage = "You clicked the Retry button."
  case 5
    strMessage = "You clicked the Ignore button."
end select

WshShell.Popup strMessage, , , 64

Answered 06/05/2012 by: ms01ak
10th Degree Black Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ