论坛风格切换切换到宽版
  • 274阅读
  • 2回复

【已解决】inno安装组件就创建该组建的开始快捷方式不选择组建就不创建 [复制链接]

上一主题 下一主题
离线lh822
 

发帖
21
金钱
210
威望
21
只看楼主 倒序阅读 0 发表于: 01-15
inno如何实现安装组件就创建该组建的开始快捷方式不选择组建就不创建

[Setup]
; 注意: AppId 的值是唯一识别这个程序的标志。
; 不要在其他程序中使用相同的 AppId 值。
; (在编译器中点击菜单“工具 -> 产生 GUID”可以产生一个新的 GUID)
AppId={{1CACFUCK-YOU2C-4FAD-7417-12601729AD0D}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "E:\zzz\zzz.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\zzz\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享的系统文件使用 "Flags: ignoreversion"
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{group}\EXeScope"; Filename: "{app}\EXeScope\eXeScope.exe";WorkingDir: "{app}"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Types]
Name: "full"; Description: "完全安装"
Name: "compact"; Description: "推荐安装"
Name: "custom"; Description: "自定义安装"; Flags: iscustom
[Components]
Name: "aaa"; Description: "主程序(必须)"; Types: full compact custom; Flags: fixed
Name: "zzz"; Description: "EXeScope"; Types:compact full custom
[Files]
Source: "EXeScope\*"; DestDir: "{app}\EXeScope"; Components: zzz



在线gnatix

发帖
6912
金钱
7500
威望
750
只看该作者 1 发表于: 01-15
Re:inno如何实现安装组件就创建该组建的开始快捷方式不选择组建就不创 ..
在 [ICONS] 段中使用 Components 参数,比如
Name: "{group}\EXeScope"; Filename: "{app}\EXeScope\eXeScope.exe";WorkingDir: "{app}"; Components: zzz
离线lh822

发帖
21
金钱
210
威望
21
只看该作者 2 发表于: 01-16
  太感谢了