If you always open the same programs after starting your computer, you might find it convenient to have them start automatically when the Windows starts. The following article explains how to launch the application at startup, when the user logon.
To achieve this, you can use two approaches:
Create a shortcut as explain in the create shortcut article and place it in the Start Menu -> Startup folder. For details, please check the Paths of the folders in the "Files and Folders" Page article.
The next time you start Windows, the program will run automatically.
The installer sets the StartupFolder property to the full path of the Startup folder. If a per-machine installation will be performed, then the shortcut will be available for all users. That means at each logon of any users, the application will start since it is placed in a public location:
If a per-user installation will be performed, then the shorcut will be available only for the user that installed the application. The StartupFolder property being set with the following value:
You can set the installation type, per-user or per-machine in the Install Parameters view.
You can launch your application when the user logon using a scheduled task. In the Scheduled Tasks page and add the application from your project to the Windows Task Scheduler.
Using the Edit Task dialog will be displayed allowing you to specify the task settings. In the Schedule tab you can specify the task to be executed at user logon. For this, you can select the At Logon option from the drop-down list.toolbar button or the “New Task” context menu item, the