compileInnoSetupScript method
Compiles the Inno Setup script into a Windows executable.
The script will be compiled using the Inno Setup compiler specified in the
innoCompilerPath
constant.
Implementation
Future<int> compileInnoSetupScript() async {
List<String> args = ['-Q', '${mode.installerPath}\\setup_script.iss'];
final process = await Process.start(
innoCompilerPath,
verbose ? args.sublist(1) : args,
runInShell: true,
mode: verbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal,
);
return process.exitCode;
}