/build/static/layout/Breadcrumb_cap_w.png

Ho can I display notifications when deploying software?

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.


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
http://www.autoitscript.com/site/
Posted by: dugullett 11 years ago
Red Belt
4

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

Sample:

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

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


Posted by: ms01ak 11 years ago
10th Degree Black Belt
2

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

 
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