How to create shortcuts on the desktop for the winform installation project

Source: Internet
Author: User
Tags microsoft website
Open vs2003, create a new installation and deployment project, and name it your Program Name. I chose the "Installation Wizard". The operation steps are as follows.

Add your custom ICO to the application folder. This ICO determines the icon displayed for your application and includes the shortcut icon.

In Solution Explorer on the right, click your solution name (the second line). The "XXX deployment project properties" is displayed in the Properties column ", after the first addremoveprogramsicon attribute, "Browse" to your ICO icon, and then enter the author name, that is, your name, in the following author. Other localization is the language attribute, manufacturer, productname attributes are part of the default folder path set during installation. Set the title to your application title name.

The following describes how to create a shortcut icon:

Click the application folder on the left, and the name of the application assembly you added will appear in the middle column (if not, right-click to add it ). Right-click "create xxx.exe shortcut", rename it as your shortcut name, click "Browse", and add your ICO icon in the "icon attribute" column on the right, perform other settings as needed. Finally, move your shortcut to the user's "program" menu bar, and you have created a shortcut in the user program menu.

Repeat similar steps to complete the "user desktop" shortcut settings. (Unfortunately, vs cannot be copied or pasted directly !)

If you need to create and uninstall shortcuts, please refer to the stuff I wrote two days ago: Release.

"Generate"-"generate your XXXX Project.

Want to see the effect? Here are my two gadgets: http://www.qqaa.net/download/ (download and install it to know what's going on, huh, huh)

Enjoy your success!

Open your generated results and check what else is there? Add dotnetfx.exe automatically, and check whether the. NET Framework is installed automatically when you install it. If not, install the. NET Framework automatically and then install your application.

Is it convenient? (In the past, we had to try our best to install it everywhere. What should we do with unmanage C ++ or download another package? No more! Feeling better)

Appendix:

How to Use Visual Studio. NET to create an installation package
Summary: This article describes how to create and install a package in the Visual Studio. NET development environment. In addition, this article also describes various types of installation projects and how to include files or dependencies in the installation program.

Deployment project type

There are five types of deployment projects: Merge Module projects, installation projects, Web installation projects, and cab projects. The Installation Wizard guides you through the process of creating a deployment project. The following are the rules that should be followed when selecting the correct deployment project type for the project. Project Type
Purpose

Merge Module Project (. MSM)
Package components that may be shared by multiple applications

Installation Project (. MSI)
Generate an installer for a Windows-based application

Web installation project (. MSI)
Generate an installer for a Web application

Cab Project (. Cab)
Create a compressed file to download to the old Web Browser

Installation Wizard (. MSI)
Help automatically create a deployment project mentioned earlier in this table

Merging module projects allows you to package files or components into one module for convenient sharing. The obtained. MSM file can be included in any other deployment project, but cannot be deployed independently.

The difference between an installation project and a web installation project is the location where the installation program is deployed:

(1) For the installation project, the installer installs the files to the Program Files directory on the target computer.

(2) For Web installation projects, the installer installs files to the virtual root directory on the Web server.

The cab project allows you to create a. cab file to package ActiveX components that can be downloaded from a Web server to a web browser.
How to create an installation package

1. Start a new project in one of the following ways: on the File menu, point to new, and then click Project.

-Or-if you want to create an installation package for a project, open the project, right-click solution myproject in Solution Explorer (where myproject is the name of your project ), point to add, and then click Create Project

2. In the Create Project dialog box, select "Install and deploy Project" in the "project type" pane, and then select the desired installer type in the "template" pane.

The project is added to Solution Explorer and the file system editor is opened.
3. In the Properties dialog box, select the productname attribute and enter the product name.

How to add files to the installation package

1. In the file system Editor, select the application folder node.

2. Right-click the application folder, and click Add and file in the Action menu. In the Add file dialog box, browse and select all files to be added to the application.

Note: If you already have an application project in your solution, do not select a file. You can select project output to add project output.

3. To add existing modules to the installation package (this is not possible for the cab project), right-click the name of the installation package in Solution Explorer. Click Add, and then click merge module. In the Add module dialog box, browse and select all merging modules to be added to the application.

Appendix B: How to create shortcuts for Visual Studio 2005 or Visual Studio. NET installation and deployment projects
Create a shortcut

Follow these steps to create a shortcut in the deployment project:

1. open the file system editor. In the View menu, point to the editor and click File System.

2. Open the application folder that contains the files for which you want to create shortcuts.

3. Right-click the file for which you want to create a shortcut.

4. Click Create shortcut.

5. A shortcut will be created in the same folder where the original file is located.

6. Drag the shortcut to the desired folder. For example, if you want to create a shortcut in the program menu, drag the shortcut to the program menu folder. If you want to create a shortcut in the Start menu, drag the shortcut to the Start Menu folder. You can also use the folder field in the "properties" window to change the folder location of the shortcut.

Appendix C: simple solution to application Publishing issues under my. net

Two gadgets have been written over the past few days. One is the automatic image browser, and the other is the batch file name modifier. (If you are interested, here the http://www.qqaa.net/download/ can be downloaded)

When I was about to release the client, I encountered the issue of publishing the Win98, Win2k series, win2003, and Win XP clients. Some of them may have installed the ". NET Framework", but some may not.

How can this problem be solved?

Here are my solutions:

1. Create a new installation and deployment project in vs.net, select "Installation Wizard", name your application name, select the solution storage location, and click "OK". A prompt is displayed, click "Next" and select a project type. I select the first one by default and "Next ".

2. Select the file to be included. Pay attention to it here!

Note: (1. If the installation is in win98, select the msiexec.exe file under win98os directory (generally in the c: \ windows \ drivers file (generally in the \ winnt \ system32 directory ).

3. Select "Next", "Next", or "finish" to go to the project solution. Click the shortcut of the new project named msiexec.exe, and rename the description text to be uninstalled, for example, "Uninstall qqaa tool ".

4. Click solution resource manager on the right and click your project name (that is, the second line). The "XXX deployment project properties" text appears, with a "productcode" Property in the column, the property value contains the similar words "{8dc61eae-b624-491d-ad49-ffaewrerre}". Select "copy ".

5. Click Your uninstall shortcut name again. For example, if my tool is "Uninstall qqaa", and then go to the attribute column in the lower right corner, there is an attribute column named arguments, in the attribute column, enter "/X", add a space, and then "Paste" to copy the property value of productcode to this point.

6. Drag the shortcut to the user's "program" menu, so that you can see "Uninstall qqaa tool" in the "run"-"program" menu. What if I need to add the "Uninstall XXXX" shortcut to the desktop? Haha, repeat the above operation. The difference is to drag it into the "user desktop ".

7. In the top menu bar of vs.net, "generate"-"generate XXXX" (XXXX is your project name ).

8. Download Microsoft. NET Framework 1.1 from the Microsoft website http://www.microsoft.com/downloads/directly to the release package (dotnetfx.exe file), copy it to the directory generated by your release, and add your installation instructions and prompt files. In the installation instructions, the user is prompted to install dotnetfx.exe first, and then click your application to run it.

Appendix D:

Add and remove shortcuts in the file system Editor

You can add shortcuts to a deployment project to provide direct access to files on the target computer. For example, you may want to place a shortcut for an executable file on the desktop and the Start menu to allow the user to start the file, alternatively, you may want to add shortcuts to the "application" folder so that users can browse its content.

Warning try to use the "add file" command to add an existing shortcut to add the file pointed to by the shortcut, instead of the shortcut itself.
Shortcut for adding files or folders
1. In the file system Editor, select the file or folder for which you want to create a shortcut. Note: When adding shortcuts for special folders, you must set the alwayscreate attribute of the folder to true.
2. on the "operations" menu, click "create <Name> shortcut ". The shortcut appears in the file list.
3. Select the shortcut and select "cut" from the "edit" menu ".
4. In the "folder list", select the folder on which the shortcut will be displayed on the target computer, and select "Paste" from the "edit" menu ".
You can also drag shortcuts from one location to another.
Remove shortcuts
Select the shortcut in the file list and select Delete from the edit menu ".

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.