When vs generates the installation package, the generated shortcut points to a folder instead of a specific executable file.

Source: Internet
Author: User

For a long time, I always thought it was my own problem, but now I feel more and more about vs problems.
Create an installation project in vs2005, add the files you want to package, and then place the shortcut for creating executable files in the program menu and user desktop respectively. OK. There should be no problems in the production process, after installation and installation, the Desktop shortcuts and program menus are generated and run properly.

Now I want to talk about the problem with this shortcut. You can click the shortcut to view attributes. Generally, you can find the target, but this shortcut is not working. It is to locate the program directory, it should have been vs's shell. He started the program file by himself, and then I tried to delete a file under the program directory (any file ), then, when the shortcut is run again, the system will start to reinstall and copy the file again. In short, he will ensure that the files in your directory should at least look at the original installation.

However, if you manually create a shortcut in your operating system and run everything normally, as long as it is not necessary for the system to be deleted to run, everything starts normally.


This is vs's own problem. Microsoft's help and support websites have already pointed out and proposed solutions. However, the solution on the website is unclear.

A simple solution is as follows:
1. Download the MSI editing software orca first, you can go here to download: http://www.52z.com/soft/10568.Html
2. Start orca.
3. In the File menu, click open ".
4. In the open dialog box, find the folder containing yourapplicationsetup. MSI.
5. Click the yourapplicationsetup. MSI file, and then click open ".
6. In the tables pane, click cut ".
7.in the right window, select the row in the “name.exe column that corresponds to the value of yourapplication.exe, click the "target" column of the row, and change the value of the shortcut generated by Vs to "defaultfeature" to "[targetdir] \ yourapplication.exe ".
8. Click "save" on the "file" menu and exit the orca editor.

9. Click yourapplicationsetup. MSI and select "C: \" as the installation path. Right-click the created shortcut and choose "properties". The target is "C: \ yourapplication.exe ".



Link: http://bbs.csdn.net/topics/300114529

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.