Results 1 to 9 of 9

Thread: Making a program a Startup item

  1. #1

    Thread Starter
    Addicted Member The Phoenix's Avatar
    Join Date
    Aug 2003
    Location
    With my wife
    Posts
    142

    Making a program a Startup item

    I assume it is possible to make a VB.NET program a startup item. How can this be accomplished? If it's overly complicated, dont bother explaining it, just say: "It's too complicated you moron" or something like that.
    Take my love
    Take my land
    Take me where I cannot stand
    I don't care, I'm still free
    You can't take the sky from me...

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    It's too complicated you moron








    There are ways to do this in any language.

    1. AUTOEXEC.BAT
    2. Start-up Folder. it's in the Program Files folder, just put in a bat file, shortcut or exe into it and it'll run it on start-up.
    3. Registry. Something like
    HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

    There are TONS more ways, it's extremely simple. www.google.com I'm sure has ther ways

  3. #3

    Thread Starter
    Addicted Member The Phoenix's Avatar
    Join Date
    Aug 2003
    Location
    With my wife
    Posts
    142
    Okay, thanks! So I dont actually code that into the program, that's why I couldn't figure it out, I wasn't thinking along the right lines. I know how to do all the stuff you mentioned, I just never thought of them.

    Thanks!
    Take my love
    Take my land
    Take me where I cannot stand
    I don't care, I'm still free
    You can't take the sky from me...

  4. #4
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    hey..about that HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, would the key be like:
    HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\appname
    and value be a shortcut or something?

  5. #5
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by R.a.B.B.i.T
    hey..about that HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, would the key be like:
    HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\appname
    and value be a shortcut or something?
    there should be keys in that already for you to look at....

  6. #6

    Thread Starter
    Addicted Member The Phoenix's Avatar
    Join Date
    Aug 2003
    Location
    With my wife
    Posts
    142
    What you need to do is right-click on the empty space below all the items that are already in the list. Select "New", then "String Value". Now name your string value whatever you want. Now right-click on it and select "Modify" and type in the file path in the "Value Data:" field.

    Export the file, then double-click on the newly exported file, and restart your comp for the changes to take effect.
    Take my love
    Take my land
    Take me where I cannot stand
    I don't care, I'm still free
    You can't take the sky from me...

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Another easy solution , let this little problem be handled by InstallShield Installer . Have a look at the attachtment .
    Attached Images Attached Images  

  8. #8
    Lively Member
    Join Date
    Jul 2003
    Location
    Kuala Lumpur (Malaysia)
    Posts
    92

    Use Microsoft Installer...

    Hi,

    I think you want to put the file at startup during installation. Then just create a setup project put your application at "Startup" folder. That all.



  9. #9
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I've just had a look at WI , it seems to do the trick . It's been long time I've not used it . I liked InstallShield

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