is there a way to ask the user to reset his machine after an install using the pdw?
Printable View
is there a way to ask the user to reset his machine after an install using the pdw?
Reset as in Reboot?
Why would you ask for Reboot?Quote:
Originally Posted by bezaman
If you update any of the system files then the System will automatically ask the user to restart.
Now if you want to restart the windows using PDW then you will have to customize your setup. PDW internaly uses Setup1.VBP project to create the setup. This project can be found at Drive:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1. Make sure that you have backup of this folder before you do any changes to it. You can use this API to initiate the shutdownAnd this codeVB Code:
Private Declare Function ExitWindowsEx Lib "user32" _ (ByVal uFlags As Long, ByVal dwReserved As Long) As LongVB Code:
Const EWX_REBOOT = 2 Const EWX_FORCE = 4 ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0
:pVB Code:
MsgBox "Please Restart your machine now", vbexclamation, "Restart Request"
The trick is makeing the machine restart. I'd be interested in thaat code for vb6