|
-
Mar 3rd, 2006, 02:15 PM
#1
Thread Starter
Fanatic Member
reset after install
is there a way to ask the user to reset his machine after an install using the pdw?
-
Mar 6th, 2006, 07:33 AM
#2
-
Mar 6th, 2006, 08:10 AM
#3
Re: reset after install
 Originally Posted by bezaman
is there a way to ask the user to reset his machine after an install using the pdw?
Why would you ask for Reboot?
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 shutdown
VB Code:
Private Declare Function ExitWindowsEx Lib "user32" _
(ByVal uFlags As Long, ByVal dwReserved As Long) As Long
And this code
VB Code:
Const EWX_REBOOT = 2
Const EWX_FORCE = 4
ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0
Use [code] source code here[/code] tags when you post source code.
My Articles
-
May 24th, 2006, 09:43 PM
#4
Fanatic Member
Re: reset after install
VB 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|