1
votes

This may be really simple but when I try to compile a program containing

Inc(Count);

In Inno Setup I keep getting

Unknown identifier 'Inc'

I believe this is how you increment integers in Pascal, and am confused on how to proceed here.

I am using Inno Setup 5.5.9(a).

1
Your code is correct. It compiles for me. Show us the code in some context.Martin Prikryl
I get few hints, when compiling your code, but no error. What version of Inno Setup are you using? + Is it Ansi or Unicode version?Martin Prikryl
I amusing 5.5.9(a)Dant.A
Apparently (a) means that its non-unicode.Dant.A

1 Answers

0
votes

Indeed, the Inc does not work in Ansi version of Inno Setup. It works in Unicode version though.

You should not use Ansi version anyway. It's 2016, no application should use legacy encoding anymore. Switch to the Unicode version.


If you have a very good reason to stick with Ansi version (like lots of Pascal code that works with Ansi strings, which is error prone when converting to Unicode version), you can of course use:

Count := Count + 1;