2

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)

The architecture unsupported error message

How can I show a custom message instead of this?

Community
  • 1
  • 1
Andrey Moiseev
  • 3,914
  • 7
  • 48
  • 64

1 Answers1

5

See Handling and customizing errors and messages in Inno Setup.

This particular message is defined by the OnlyOnTheseArchitectures message.

You can change it in the [Messages] section:

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

enter image description here


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

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992