addRun method
void
addRun({})
Adds a Run
entry to the Inno Setup script.
fileName
is required. parameters
, flags
, and message
are optional.
Implementation
void addRun({
required String fileName,
String? parameters,
List<RunFlag>? flags,
String? message,
String? description,
}) {
String runPart = [
'Filename: "$fileName"',
if (parameters != null) 'Parameters: "$parameters"',
if (flags != null && flags.isNotEmpty) 'Flags: ${flags.join(' ')}',
if (message != null) 'StatusMsg: $message',
if (description != null) 'Description: $description'
].join('; ');
_run.writeln(runPart);
}