CommonWindowsInstallerConfiguration.d.ts
1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { WinPackager } from "../winPackager";
export interface CommonWindowsInstallerConfiguration {
readonly oneClick?: boolean;
/**
* Whether to install per all users (per-machine).
* @default false
*/
readonly perMachine?: boolean;
/**
* Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.
* @default true
*/
readonly runAfterFinish?: boolean;
/**
* Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).
* @default true
*/
readonly createDesktopShortcut?: boolean | "always";
/**
* Whether to create start menu shortcut.
* @default true
*/
readonly createStartMenuShortcut?: boolean;
/**
* Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.
* @default false
*/
readonly menuCategory?: boolean | string;
/**
* The name that will be used for all shortcuts. Defaults to the application name.
*/
readonly shortcutName?: string | null;
}
export interface FinalCommonWindowsInstallerOptions {
isAssisted: boolean;
isPerMachine: boolean;
shortcutName: string;
menuCategory: string | null;
isCreateDesktopShortcut: DesktopShortcutCreationPolicy;
isCreateStartMenuShortcut: boolean;
}
export declare function getEffectiveOptions(options: CommonWindowsInstallerConfiguration, packager: WinPackager): FinalCommonWindowsInstallerOptions;
export declare enum DesktopShortcutCreationPolicy {
FRESH_INSTALL = 0,
ALWAYS = 1,
NEVER = 2
}