Inno Setup Preprocessor: Functions
There are a number of predefined functions provided by ISPP which you can use to perform compile-time actions and/or change your script. For example the following reads version info from an EXE and uses the return value of the function to change the script:
#define MyAppVer GetFileVersion(AddBackslash(SourcePath) + "MyProg.exe")
[Setup]
AppVerName=MyProg version {#MyAppVer}
Available functions
- GetFileVersion
- GetStringFileInfo
- Int
- Str
- FileExists
- DirExists
- FileSize
- ReadIni
- WriteIni
- ReadReg
- Exec
- Copy
- Pos
- RPos
- Len
- SaveToFile
- Find
- SetupSetting
- SetSetupSetting
- LowerCase
- EntryCount
- GetEnv
- DeleteFile
- CopyFile
- FindFirst
- FindNext
- FindClose
- FindGetFileName
- FileOpen
- FileRead
- FileReset
- FileEof
- FileClose
- GetDateTimeString
- GetFileDateTimeString
- GetMD5OfString
- GetMD5OfUnicodeString
- GetMD5OfFile
- GetSHA1OfString
- GetSHA1OfUnicodeString
- GetSHA1OfFile
- Trim
- StringChange
- Defined
- TypeOf
- DimOf
- ParseVersion
- EncodeVer
- DecodeVer
- FindSection
- FindSectionEnd
- FindCode
- ExtractFilePath
- ExtractFileExt
- ExtractFileName
- ChangeFileExt
- AddBackslash
- RemoveBackslash
- Delete
- Insert
- YesNo
- Power
- Min
- Max