Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup Error "Text is not inside a section." after upgrade

Tags:

inno-setup

I recently upgraded my Inno Setup from version 5.4.3(u) to version 5.5.5(a), and now I'm getting an error for a script which used to compile fine with the previous version.

This is Inno Setup's output:

[ISPP] Preprocessing.
[ISPP] Preprocessed.

Error on line 1 in c:\Workspace\MyProject\MyInstaller.iss: Text is not inside a section.

The line in question is:

#if MYLANG == MYLANG_ENGLISH

So the processor is running, but somehow this line is not preprocessed. Why does this happen and how do I fix this?

like image 563
sashoalm Avatar asked Nov 03 '25 04:11

sashoalm


1 Answers

It turned out that the problem was that I had upgraded from a Unicode version to an ASCII version. After re-installing, this time with 5.5.5 (u), I don't get any errors anymore.

like image 144
sashoalm Avatar answered Nov 04 '25 20:11

sashoalm