仅在不 运行 静默时添加桌面图标

Add desktop icon only if not running silently

如果设置不是 运行 静默设置,是否可以仅应用此任务。我已经尝试添加 flags 属性,但不适用于 运行 指令以外的任何内容。

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon;

使用 Check parameter with the WizardSilent function.

[Tasks]
Name: "desktopicon"; ... ; Check: not WizardSilent