Results 1 to 5 of 5

Thread: CD Autorun and Restart Catch 22

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    4
    I have created a VB6 CD autorun app that is a front end to a couple of installers. I need to have the user restart before installing to insure a sucessfull installation. I have put the restart into code without much trouble. The problem is after the restart the autorun app doesn't run. Any gurus out there ideas how I can make it run after the restart?? Thanks
    Geoff Hankerson
    [email protected]

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85
    Put an entry to your program in the registry under
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" before rebooting. As soon as the program starts, remove the key again.
    Haven't done it, but it should work.

    //Anders

  3. #3
    Guest
    put an entry into
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce


    it will run once(on reboot) and `viola

  4. #4
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85
    Even better!

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    4

    Great

    Thanks guys. Being a VB newbie I'm wondering if you can give me a few tips on how to implement this or point me to resource with some tips. I am looking at the registry tutorial on VB-World.com and looks a bit complex so tips are appreciated.
    Geoff Hankerson
    [email protected]

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