Is there a list of other values besides " ", and "-" that are invalid for components in Inno Setup?

35 views Asked by At

In Inno Setup, within the name of a component, the '-' value is not valid is there a list of other values besides " " that are invalid.

2

There are 2 answers

2
TLama On BEST ANSWER

The rules for the Name parameter values of the [Tasks] and [Components] sections are:

  • the first char must be an alpha char from range A-Z (case does not matter), or an underscore
  • what follows must be an alpha char from range A-Z (case does not matter), an underscore, a number, or a slash (forward or backward) used as a component level delimiter
  • the name must not be any of these reserved words - not, and, or
1
amalgamate On

If you compile a .iss file with a component with a dash, it will tell you that only alpha numeric chars are valid. In addition it will also tell you that it may not start or end with a '\' or '/'. (tho '/' and '\' are special chars and are valid to denote the level of the component. Also a component value or "not", "and" or "or" are reserved.