gpt4 book ai didi

inno-setup - 显示不受支持的架构的自定义消息

转载 作者:行者123 更新时间:2023-12-02 04:00:01 27 4
gpt4 key购买 nike

我使用 ArchitecturesAllowed 仅允许在 64 位系统上安装。

当主机架构不受支持时,安装程​​序会显示以下消息:

This program can only be installed on version of Windows designed for the following processor architectures:

x64 (or x86)

The architecture unsupported error message

如何显示自定义消息而不是此消息?

最佳答案

参见Handling and customizing errors and messages in Inno Setup .

此特定消息由 OnlyOnTheseArchitectures 消息定义。

您可以在 [Messages] section 中更改它:

[Messages]
OnlyOnTheseArchitectures=This program cannot work on your ancient machine. Sorry.

enter image description here


或者使用您的自定义实现进行检查,包括您自己的自定义消息。请参阅Terminate setup on 32-bit Windows in Inno Setup .

关于inno-setup - 显示不受支持的架构的自定义消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42305206/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com