Results 1 to 4 of 4

Thread: reset after install

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779

    reset after install

    is there a way to ask the user to reset his machine after an install using the pdw?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: reset after install

    Reset as in Reboot?

  3. #3
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: reset after install

    Quote 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:
    1. Private Declare Function ExitWindowsEx Lib "user32" _
    2.     (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    And this code
    VB Code:
    1. Const EWX_REBOOT = 2
    2. Const EWX_FORCE = 4
    3. ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  4. #4
    Fanatic Member ididntdoit's Avatar
    Join Date
    Apr 2006
    Location
    :uoıʇɐɔoן
    Posts
    765

    Talking Re: reset after install

    VB Code:
    1. 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
  •  



Click Here to Expand Forum to Full Width