显示不受支持的体系结构的自定义消息 [英] Show a custom message for unsupported architectures

查看:140
本文介绍了显示不受支持的体系结构的自定义消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I use ArchitecturesAllowed to only allow installation on 64-bit systems.

不支持主机体系结构时,安装程​​序将显示以下消息:

When the host architecture is unsupported, the installer shows the following message:

此程序只能安装在针对以下处理器体系结构设计的Windows版本上:

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

x64 (或x86)

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

How can I show a custom message instead of this?

推荐答案

只需在

Just define a different message, in the Messages section (in the .isl or .iss):

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

或使用您的自定义实现进行检查,包括您自己的自定义消息.请参见在Inno Setup中的32位Windows上终止设置.

Or use your custom implementation for the check, including your own custom message. See Terminate setup on 32-bit Windows in Inno Setup.

这篇关于显示不受支持的体系结构的自定义消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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