C # Add a registry key for package, installation, and deployment

Source: Internet
Author: User

Today, I have compiled some specific documents on how to install the program installation package. These documents do not ensure that everyone can correctly generate and run the installation package, however, the guiding role of these documents is still necessary for friends who need it, during the installation and deployment of the actual product, some enterprises may install the installation program by using some powerful installation packages, and some enterprises or individuals may make their own installation packages. In order to help new users, I hope you can share these documents and apply these knowledge to your actual work.

Currently, the main content of this document is as follows:

I. Create a Windows Installation Project

Ii. Add a Content File

3. Add project output

4. Add Registry Information

5. create shortcuts

6. Generate a Windows Installer

Note: In the process of creating the installation package program, the steps do not have to be the same as the above steps. Different installation needs are sometimes more complex and cumbersome than these steps, this document only provides reference value and guidance.

Add registry key
To add a registry entry for a Windows Installer, follow these steps.
(1) In the Solution Explorer window, select the installation project, right-click, and select the view/registry option from the shortcut menu, as shown in figure 1.
 

Figure 1 select "View/Registry"
(2) The "Registry" tab is displayed on the left side of the Windows installation project. On the "Registry" tab, expand the "HKEY_CURRENT_USER/software" node in sequence, rename the registry entry "[manufacturer]", as shown in figure 2,
 

Figure 2 "Registry" tab
Note: The [manufacturer] registry key is enclosed in square brackets, indicating that it is an attribute and will be replaced with the manufacturer attribute value of the input deployment project.
(3) Select the registry key, right-click it, and select the "New/string value" option in the shortcut menu that appears, as shown in 3. This will initialize a value for the added registry key.
 

Figure 3 select "New/string value"
(4) Select the added registry key value, right-click, and select the "Properties window" option. The "properties" window is displayed, as shown in Figure 4. The registry key value can be modified here.
 

Figure 4 "properties" Window
Follow these steps to add a registry key for the Windows installer.

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.