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.
Answers (2)
http://www.autoitscript.com/site/
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
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