Search code examples
inno-setuppascalscriptint64

Int64 variable in Inno Setup


We use some Pascal Scripting in our Inno Setup 5.5.8 and in our Code section are some Integer variables. In this variable we store the actual date and time in this format: YYMMDDhhmm. Since the year 2022 the value is too big for an Integer. Is there a Int64 in Inno Setup?


Solution

  • Unicode version of Inno Setup has Int64.

    For example, see StrToInt64.


    There's only the Unicode version in recent versions of Inno Setup. Though 5.5.8 still had Ansi version too. We do not know what version you are using, but I guess the Ansi one, otherwise you won't be asking. You should be using the Unicode version in any case. Int64 was introduced in Inno Setup 5.5.3. Btw, Inno Setup 5.5.8 is 6 years old. Do not use it.


    Imo, storing timestamp as an integer in YYMMDDhhmm format is not a good idea. Why don't you use a string?