Fix an issue where the Inno Setup installation package cannot create desktop shortcuts

Source: Internet
Author: User

Transferred from: http://yedward.net/?id=104

Yesterday want to put a Java program into EXE installation software, and then went to download the Inno Setup Software installation package, Inno Setup This software is very useful, but because I download the Chinese version, according to the wizard step to do is not to create desktop shortcuts, tossing a long time, Finally found a solution.

Here is a piece of code that I automatically generate after I use Inno Setup to package software:

123 [Tasks]Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

Above this section of code, the first paragraph represents the creation of a desktop shortcut, the second paragraph represents the creation of the Quick Launch bar. Where flags:unchecked means default is not selected, we change to Flags:checkablealone to indicate default is selected. Let's change the code to achieve the following effect:

Figure 1: Additional shortcuts

To achieve the effect shown in 1, we changed the code to look like this:

123 [Tasks]Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealoneName: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone

This is basically OK, I generally packaged software, only like to add "create desktop Shortcut", do not like to add "Create Quick Launch bar Shortcut", so the second code can also not.

Fix an issue where the Inno Setup installation package cannot create desktop shortcuts

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.