Progress bar and an install finalize dialog.
I need to include a progress bar and an final dialog that says "blahblah has been installed on your system."
Using WPS, how would one accomplish that?
Using WPS, how would one accomplish that?
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
ekniranjan
14 years ago
HI Repackman,
If you want to display just a message, just include this VB Script in your package ok.
Option Explicit
On Error Resume Next
' Create Shell Object
Dim objShell : set objShell = CreateObject("WScript.Shell")
' Create Message box Message
Dim strMessage : strMessage = "DISPLAY THIS HELLO WORLD"
strMessage = strMessage & VbCrLf & "Pricing and Sign Off Tool?"
' Number of seconds in the delay
Dim intWaitSeconds : intWaitSeconds = 10
' Mesage Box Title
Dim strTitle : strTitle = "Pricing and Sign Off Tool"
' Display Message Box PopUp for delay period and capture return value.
Dim Return : Return = objShell.Popup(strMessage, intWaitSeconds,strTitle,vbokonly)
' Execute code based on the PopUp Returned value.
If Return = 6 Then
'Place no reboot action code here.
Else
'Place reboot action code here.
End If
' ************end code*************
If you want to display just a message, just include this VB Script in your package ok.
Option Explicit
On Error Resume Next
' Create Shell Object
Dim objShell : set objShell = CreateObject("WScript.Shell")
' Create Message box Message
Dim strMessage : strMessage = "DISPLAY THIS HELLO WORLD"
strMessage = strMessage & VbCrLf & "Pricing and Sign Off Tool?"
' Number of seconds in the delay
Dim intWaitSeconds : intWaitSeconds = 10
' Mesage Box Title
Dim strTitle : strTitle = "Pricing and Sign Off Tool"
' Display Message Box PopUp for delay period and capture return value.
Dim Return : Return = objShell.Popup(strMessage, intWaitSeconds,strTitle,vbokonly)
' Execute code based on the PopUp Returned value.
If Return = 6 Then
'Place no reboot action code here.
Else
'Place reboot action code here.
End If
' ************end code*************
Posted by:
Jsaylor
14 years ago
You're actually in kind of a tough place. As far as I know, there is no way to present a progress bar AND a dialog box at the end with just an msiexec command line without also allowing the user to cancel the installation. /passive is what I typically use, which present a progress bar, but does not present a dialog box. /qb+ will give you a progress bar and a dialog box at the end, but allows users to cancel out of the installation.
Your best bet for having both, in my opinion, is to just wrap it in a simple script, use /passive for the command line, and then echo some simple dialog once it's complete.
Your best bet for having both, in my opinion, is to just wrap it in a simple script, use /passive for the command line, and then echo some simple dialog once it's complete.
Posted by:
Repackman
14 years ago
Posted by:
Jsaylor
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.