electron-wix-msi
Version:
Creates an MSI installer for your Electron app
137 lines (136 loc) • 3.8 kB
TypeScript
export interface MSICreatorOptions {
appDirectory: string;
appUserModelId?: string;
toastActivatorClsid?: string;
description: string;
exe: string;
icon?: string;
extensions?: Array<string>;
lightSwitches?: Array<string>;
cultures?: string;
language?: number;
manufacturer: string;
name: string;
outputDirectory: string;
programFilesFolderName?: string;
nestedFolderName?: string;
shortName?: string;
shortcutFolderName?: string;
shortcutName?: string;
ui?: UIOptions | boolean;
upgradeCode?: string;
version: string;
signWithParams?: string;
certificateFile?: string;
certificatePassword?: string;
arch?: 'x64' | 'ia64' | 'x86';
features?: Features | false;
defaultInstallMode?: 'perUser' | 'perMachine';
rebootMode?: string;
installLevel?: number;
bundled?: boolean;
}
export interface UIOptions {
chooseDirectory?: boolean;
template?: string;
images?: UIImages;
localizations?: Array<string>;
}
export interface UIImages {
background?: string;
banner?: string;
exclamationIcon?: string;
infoIcon?: string;
newIcon?: string;
upIcon?: string;
}
export interface AutoLaunchOptions {
enabled: boolean;
arguments: Array<string>;
}
export interface Features {
autoUpdate: boolean;
autoLaunch: boolean | AutoLaunchOptions;
}
export declare class MSICreator {
fileComponentTemplate: string;
registryComponentTemplate: string;
permissionTemplate: string;
componentRefTemplate: string;
directoryTemplate: string;
directoryNestedInstallTemplate: string;
wixTemplate: string;
uiTemplate: string;
wixVariableTemplate: string;
updaterTemplate: string;
updaterPermissions: string;
autoLaunchTemplate: string;
shortcutPropertyTemplate: string;
wxsFile: string;
appDirectory: string;
appUserModelId: string;
toastActivatorClsid?: string;
description: string;
exe: string;
icon?: string;
extensions: Array<string>;
lightSwitches: Array<string>;
cultures?: string;
language: number;
manufacturer: string;
name: string;
outputDirectory: string;
programFilesFolderName: string;
nestedFolderName: string;
shortName: string;
shortcutFolderName: string;
shortcutName: string;
upgradeCode: string;
windowsCompliantVersion: string;
semanticVersion: string;
certificateFile?: string;
certificatePassword?: string;
signWithParams?: string;
arch: 'x64' | 'ia64' | 'x86';
autoUpdate: boolean;
autoLaunch: boolean;
autoLaunchArgs: Array<string>;
defaultInstallMode: 'perUser' | 'perMachine';
productCode: string;
rebootMode: string;
installLevel: number;
bundled: boolean;
ui: UIOptions | boolean;
private files;
private specialFiles;
private directories;
private registry;
private tree;
private components;
constructor(options: MSICreatorOptions);
create(): Promise<{
wxsFile: string;
wxsContent: string;
supportBinaries: Array<string>;
}>;
compile(): Promise<{
wixobjFile: string;
msiFile: string;
}>;
private createWxs;
private createWixobj;
private createMsi;
private createFire;
private signMSI;
private getUI;
private getUIVariables;
private getDirectoryForTree;
private getTree;
private getFeatureComponentRefs;
private getFileComponent;
private getRegistryComponent;
private getShortcutProperty;
private getComponentId;
private getSpecialFiles;
private getRegistryKeys;
}