Skip to content

Commit

Permalink
Merge c44fd1b into 827d404
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinjdobler committed Oct 2, 2020
2 parents 827d404 + c44fd1b commit 1ccc575
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -172,6 +172,7 @@ detailed configuration of the UI. It has the following optional properties:
* `chooseDirectory` (boolean, optional) - If set to `true`, the end user will be
able to choose the installation directory. Set to `false` by default. Without
effect if a custom `template` is used.
* `localizations` (string[], optional) - Provide an array of paths to `.wxl` files containing the localizations.
* `images` (Optional) - Overwrites default installer images with custom files. I
recommend JPG.
* `background` - (optional, string) 493 x 312 Background bitmap used on the
Expand Down
6 changes: 6 additions & 0 deletions src/creator.ts
Expand Up @@ -62,6 +62,7 @@ export interface UIOptions {
chooseDirectory?: boolean;
template?: string;
images?: UIImages;
localizations?: Array<string>;
}

export interface UIImages {
Expand Down Expand Up @@ -330,6 +331,11 @@ export class MSICreator {

const preArgs = flatMap(this.extensions.map((e) => (['-ext', e])));

if (typeof this.ui === 'object' && this.ui.localizations && this.ui.localizations.length && type === 'msi') {
this.ui.localizations.forEach((l) => preArgs.push('-loc', l));
}


if (type === 'msi' && this.cultures) {
preArgs.unshift(`-cultures:${this.cultures}`);
}
Expand Down

0 comments on commit 1ccc575

Please sign in to comment.