run windows application on window start up

HI

i created a window form application in VB.NET

i want to do following things

i want to make my application setup such that it can installed on other window system

i want my application window to run immediately after users logs in

and i want to display users login name in my window  application

thanks



BasicAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LandyJCommented:
For the User Name:
lblUserName.text = SystemInformation.UserName

To make your application run on Startup, create a shortcut to your application in the User's (or All Users) StartUp directory in the Start menu,
- or -
Create an entry in the Registry under
HKLM\Software\Microsoft\Windows\Current Version\Run (for all users)  or
HKCU\Software\Microsoft\Windows\Current Version\Run (for the user logged in when the program is installed)
0
BasicAuthor Commented:
Hi i want to creat a setup program which takes care of intalling at start up or adding regitry keys
0
LandyJCommented:
To install to the User's Startup Menu:
Right Click on the Install Project,
Select View,
File System
Right Click on File System on Target Machine,
show Add Special Folder,
Select User's StartUp folder
Create a Shortcut to your .EXE in the Applicaiton Folder,
Rename it and Move it to the User's Startup Folder

This will install the shortcut in the User's Startup folder during installation

To add the Registry Entries.  The easiest way is to create a REG file with your entries for HKLM\Software\Microsoft\Windows\Current Version\Run and use the Import process.
(**** STANDARD REGISTRY CAUTION  **** Edit the Registry at your own risk.  Make a back up first while testing before updating any Registry settings)
right Click on your Installer project
Select View
Select Registry
Right Click on Registry on  
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

LandyJCommented:
Ooops, hit enter when not in the edit box....

To continue...

To add the Registry Entries: The easiest way is to create a REG file with the necessary key(s) and value(s) and use the Import process.

(**** STANDARD REGISTRY CAUTION  **** Edit the Registry at your own risk.  Make a back up first while testing before updating any Registry settings)

Create a .REG file that will add the necessary Key and value to HKLM\Software\Microsoft\Windows\Current Version\Run
Rright Click on your Installer project
Select View
Select Registry
Right Click on Registry on  Target Machine
Select Import
Select your pre-built REG file

Hope this at least sets yo in the proper direction,
Landy
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LandyJCommented:
Basic,

Were you able to get your install projects working?  Let me know if you need anything more.

-Landy
0
LandyJCommented:
I think I pretty well covered it.  I'll take the points.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.