自定义桌面图标与inno设置 [英] Custom desktop icon with inno setup

查看:771
本文介绍了自定义桌面图标与inno设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的inno安装文件中有以下内容创建桌面图标没问题:

I have the following in my inno setup file which creates a desktop icon no problem:

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

然而,启动程序的主文件是VBS文件而不是EXE。我想在快捷方式上有一个漂亮的图标,而不是VBScript,但是找不到更改图标的选项。

However, the main file that launches the program is a VBS file rather than an EXE. I'd like to have a nice icon on the shortcut rather than the VBScript one, but can't find an option to change the icon.

是否有这样的选项可用于设置自定义图标??

Is there such an option available to set a custom icon??

推荐答案

关于 [图标] <的Inno-Setup帮助/ code>部分说:

The Inno-Setup help about the [Icons] section says:


IconFilename



文件名要显示的自定义图标(位于用户的
系统上)。这可以是包含图标或.ico文件的可执行映像(.exe,.dll)
。如果未指定此参数或
为空,则Windows将使用该文件的默认图标。此参数可以
包括常量。

IconFilename

The filename of a custom icon (located on the user's system) to be displayed. This can be an executable image (.exe, .dll) containing icons or a .ico file. If this parameter is not specified or is blank, Windows will use the file's default icon. This parameter can include constants.

示例: IconFilename :{app} \ myicon.ico

Example: IconFilename: "{app}\myicon.ico"

来源

希望有所帮助。

这篇关于自定义桌面图标与inno设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆