Results 1 to 10 of 10

Thread: How to restart the system

  1. #1

    Thread Starter
    Member vbGirl's Avatar
    Join Date
    Sep 2001
    Location
    India
    Posts
    41

    Exclamation How to restart the system

    Can any one give me the suggestion that, is there any API by whcih i can restart the system.


    if yes, then pls send me that code


    Bye

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Look at the zip file

  3. #3

    Thread Starter
    Member vbGirl's Avatar
    Join Date
    Sep 2001
    Location
    India
    Posts
    41

    Hi Amitabh

    hi,


    Thanks a lot for your code, i need one more favour. can you tell me how can i reeboot my machine aftred my Application is deployed.



    Bye


    Awaiting for ur reply

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Which Installation Pakage are you using?

  5. #5

    Thread Starter
    Member vbGirl's Avatar
    Join Date
    Sep 2001
    Location
    India
    Posts
    41
    hi, amitab

    actually i have developed a application which start as the
    system starts, i am using package & delopy wizard, i have created a shortcut in the startup menu now i want when
    user will install my package the setup ask to reboot the
    machine so that my application will start from startup.

    please help me accordingly

    Thanks
    vbGirl

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Well, with P&D you can modify its source code to reboot at the end of your setup. It doen't give you any other options. The source code is in the same directory where the executable is. If you are comfortable with InstallShield, you can use it with much greater effect for the same purpose.

  7. #7

    Thread Starter
    Member vbGirl's Avatar
    Join Date
    Sep 2001
    Location
    India
    Posts
    41
    hi,

    if possible explain me the process,
    as i dont know enough about
    installshield.....

    please help me


    vbGirl

  8. #8
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Do you have any installshield versions with you? It comes with VB enterprise Edition as well as MSDN Subscription.

  9. #9

    Thread Starter
    Member vbGirl's Avatar
    Join Date
    Sep 2001
    Location
    India
    Posts
    41
    Hi,

    i am having all the softwares, please
    just explain how to do.... as i am new
    in Visual Basic.


    vbGirl

  10. #10
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Installshield has an option to select the project file(.vbp file of your project). The wizard it presents at the startup is quite helpful. Just in few steps you will be able to make a simple setup package. Once you have done that, you will be presented with a list of tasks. Somewhere in the list, you will find "Installshield Extensions". Use this fetaure to run your program at the end of your installation. Or from the "Dialog Box" option in the same list, just force the computer to reboot.

    If the process becomes quite complex, just try one step at a time.

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