You can extract your installation exe name from the {srcexe} constant, and the record as a custom variable string.
Example:
ExtractFileName(ExpandConstant('{srcexe}'))
In code:
[Code] function InitializeSetup: Boolean; var SetupName : String; begin SetupName := ExtractFileName(ExpandConstant('{srcexe}')); MsgBox(SetupName, mbInformation, MB_OK); Result := False; end;
{srcexe}
The full pathname of the Setup program file, eg "C:\SETUP.EXE".
Additional Information about Inno Installation Constants
source share