当前位置: 动力学知识库 > 问答 > 编程问答 >

inno setup - Show a custom message for unsupported architectures

问题描述:

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

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

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

x64 (or 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.


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

分享给朋友:
您可能感兴趣的文章:
随机阅读: