|
本人今天用innosetup5.5.9打包安装程序,一直不知道在哪里设置快捷方式的图标,经研究终于解决,记录如下:8 j. Y- l9 _7 c1 l' q2 ?. l
首先按照innoseup的安装向导安装完成% m" N- W6 k/ J' V- H
接着修改innosetup的脚本,两个地方一个是Task一个是Icons
}/ e, _% P1 @7 b1 }"********************************************************************************"& z* l o& `3 X* x; w' I
[Tasks]" i8 d8 c) X# l4 W$ S# Q7 F
Name: desktopicon; Description: "创建桌面快捷方式(&D)"; GroupDescription: "添加快捷方式:"; ( M3 N% C# c! L T( t: Z8 L( B0 V
Name: desktopicon\common; Description: "对于所有用户"; GroupDescription: "添加快捷方式:";
6 W6 E4 N2 ]2 AName: desktopicon\user; Description: "仅对当前用户"; GroupDescription: "添加快捷方式:quicklaunchicon"; Flags: unchecked
) X" C) ~! O, k3 k& A- t( b9 d( AName: associate; Description: "文件关联(&A)"; GroupDescription: "其它任务:"; Flags: unchecked
) k/ w5 }' m" j3 @; I% W3 _8 l2 ^, z' e
"********************************************************************************"
6 K# T; `. J( z7 F# w[Icons]- z( y3 C' \ F$ L' ~
Name: "{commonprograms}\数据转换 V2.3.0"; Filename: "{app}\wxsds1.exe";IconFilename: "{app}\ico.ico"" m' u+ X3 ~) K1 x9 n! |8 h
Name: "{commondesktop}\数据转换 V2.3.0"; Filename: "{app}\wxsds1.exe";IconFilename: "{app}\ico.ico" ;Tasks: desktopicon
* Q7 a5 l t9 v3 `. \
% q8 S `5 I% b8 y, p结果达到预期效果
& e+ _- t# a% H7 Z! f: V. B! @ |
|