在 Windows 中自动播放安装 CD 时如何显示图标

发布于 2024-07-13 11:03:12 字数 187 浏览 4 评论 0原文

我有一张安装 CD 来安装我制作的 Visual Studio C++ 应用程序。 它有三个文件:setup.exe、 自动运行.INF, 和应用程序.msi。 当我插入 CD 时,Windows 自动播放弹出窗口会显示一个通用图标。 如何为 setup.exe 显示我自己的图标。 我还希望在插入 CD 后将其用作驱动器图标,我认为它们是相关的。

I have a setup CD to install a visual studio C++ application I made. It has three files: setup.exe,
AUTORUN.INF,
and app.msi. When I insert the CD the Windows AutoPlay popup shows a generic icon. How do I have my own icon displayed for setup.exe. I also want this for the drive icon after I insert the CD, I think they're related.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦旅人picnic 2024-07-20 11:03:13

我讨厌自动启动。

在 AUTORUN.INF 中,您可以指定安装程序旁边的驱动器图标:

[AutoRun]
open=setup.exe
icon=*youricon*.ico

I hate autostart.

In AUTORUN.INF, you can specify the drive icon just next to the setup program:

[AutoRun]
open=setup.exe
icon=*youricon*.ico
我还不会笑 2024-07-20 11:03:13

在 AUTORUN.INF 的 [autorun] 部分中,添加一行,例如:

icon=filename.ext

I believe the file can be an image file or anexecutable, in this case 它将使用第一个图标资源。

in the [autorun] section on AUTORUN.INF, add a line like:

icon=filename.ext

I believe the file can be an image file or an executable, in which case it will use the first icon resource.

窝囊感情。 2024-07-20 11:03:13

您可以在 autorun.inf 中指定图标文件,

icon=whatever.ico

我认为您还可以通过将程序/dll 名称放在后面加上逗号和(我认为)图标编号来指定嵌入程序中的图标。

icon=whatever.dll,5

You can specify an icon file in autorun.inf

icon=whatever.ico

I think you can also specify icons embedded in programs by putting the program/dll name then a comma and (i think) the icon number.

icon=whatever.dll,5
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文