/build/static/layout/Breadcrumb_cap_w.png

Reboot prompt using Basic UI (/qb) ?

Is is possible to get the installer to prompt the user to reboot when using the Basic UI /qb-! in this case.

Current behaviour is

REBOOT property not specified - Automatic Reboot
REBOOT=Force - Automatic Reboot
REBOOT=Suppress stops the reboot but no prompt.

Package is transformed Exceed 2006.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: spartacus 18 years ago
Black Belt
0
Hello,

When faced with this problem before I have got around it using a custom action. The following VB Script custom action will produce an informational popup message to remind the user to reboot their workstation at the end of a successful installation.

It can be used in situations where the deployment is otherwise totally silent. The custom action should be set to be a "Commit" type action to ensure the message only becomes visible at the end of a successful installation.

Note that this custom action only provides a reminder and does not actually force a reboot.

I would normally conditionalize the custom action so it doesn't run on uninstallation by using NOT REMOVE~="ALL" as the condition.

(Big) Assumption : The target workstation must be running the Windows Messager service for this to work and not all organisations leave this service enabled.

The code I use is as follows :


Const PopupMessage = "You must reboot your workstation now to finalize the installation"

Dim oWSH
Dim sRunCmd
Dim sComputer

' Instantiate shell object
set oWSH = CreateObject("WScript.Shell")

' Determine where System32 folder is located on this workstation via SystemRoot environment variable
sSystem32Folder = oWSH.ExpandEnvironmentStrings("%SystemRoot%") & "\System32"

' Determine the local computer name from the COMPUTERNAME environment variable
sComputer = oWSH.ExpandEnvironmentStrings("%COMPUTERNAME%")

' Build the string to run the NET.EXE executable to send the message to the local workstation.
'
sRunCmd = sSystem32Folder & "\CMD.EXE /C " & _
sSystem32Folder & "\NET.EXE SEND " & _
sComputer & " " &_
chr(34) & PopupMessage & chr(34)
oWSH.Run sRunCmd

set oWSH = Nothing

-----------------------------------------------------------------------------------------------------

You can amend the constant PopupMessage to meet your own particular message requirements


Hope this is of some use to you[:)]

spartacus
Posted by: aogilmor 18 years ago
9th Degree Black Belt
0
I remember seeing REBOOT=Prompt in a lot of installations by default.
why don't you give that a try?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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