"Go" C # WinForm Package deployment when adding registry information to enable boot

Source: Internet
Author: User

It's easy to package your project with the VS-pack module, and we can start the software by operating the registry when we install the deployment. The specific implementation is as follows:

1. After adding the installation deployment project, the right mouse button installation project----View--the registry, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run add key value to save the software catalog.
Note: The default may only be hkey_current_user\software\[manufacturer], it doesn't matter, we add the above items in turn. namely: Hkey_current_user\software\[manufacturer]\windows\currentversion\run.

2, then add the environment string value in run, the key name can be the starting, value to fill the physical path of the software.
The physical path is determined by the customer in the deployment, how do we get it? Here we can use [TARGETDIR] to get the client's chosen path, plus the software's startup file name. For example, the name of the software startup file is Xx.exe, then value is: [Targetdir]xx.exe.

This way, restarting the computer system will automatically run the software we set up.

From:http://blog.sina.com.cn/s/blog_67b113a101012mac.html

"Go" C # WinForm Package deployment when adding registry information to enable boot

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.