IssGenerator constructor
IssGenerator({})
Creates a new IssGenerator instance.
appId
, appName
, appVersion
, defaultDirname
, and defaultLanguages
are required.
Implementation
IssGenerator({
required String appId,
required String appName,
required String appVersion,
required String defaultDirname,
required Language defaultLanguages,
}) {
_setup.writeln('[Setup]');
_languages.writeln('[Languages]');
_files.writeln('[Files]');
_run.writeln('[Run]');
addSetup(key: 'AppId', value: appId);
addSetup(key: 'AppName', value: appName);
addSetup(key: 'AppVersion', value: appVersion);
addSetup(key: 'DefaultDirName', value: defaultDirname);
addSetup(key: 'ArchitecturesAllowed', value: 'x64compatible');
addSetup(key: 'ArchitecturesInstallIn64BitMode', value: 'x64compatible');
addSetup(key: 'Compression', value: 'lzma2/max');
addSetup(key: 'SolidCompression', value: 'yes');
addSetup(key: 'WizardStyle', value: 'modern');
addLanguages(defaultLanguages);
}