Show a custom message for unsupported architecture

2019-06-06 10:40发布

问题:

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?

回答1:

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.



标签: inno-setup