“inno setup打包,win7下安装没有桌面快捷方式,xp下安装正常”

时间:2022-08-28 03:35:46
修改桌面的快捷键为选中就行了:Flags: checkablealone;
在[Tasks]下面修改代码如下:
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone;

我的就是后面多了一个:WindowS版本的字段:OnlyBelowVersion: 0,6.1
删除后就可以了,


eg :

[Tasks]
;
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1(仅xp系统生成)

Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked;(去掉OnlyBelowVersion: 0,6.1后,windows 7与xp系统都生成)

Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked