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.1 Name: "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: checkablealone Name: "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