[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

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



0
Basic
Asked:
Basic
  • 5
1 Solution
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now