-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.wxs
92 lines (87 loc) · 2.7 KB
/
app.wxs
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product
Id="*"
Codepage="1252"
Language="1033"
Manufacturer="{{ .Publisher }}"
Name="{{ .Name }}"
UpgradeCode="{{ .GUID }}"
Version="{{ .Ver }}"
>
<!-- If you're on windows add: `Platform="x64"` to Package tag! -->
<Package
Id="*"
Comments="{{ .Description }}"
Compressed="yes"
Description="{{ .Name }} Installer"
InstallerVersion="500"
Keywords="Installer"
Languages="1033"
Manufacturer="{{ .Publisher }}"
SummaryCodepage="1252"
/>
<MajorUpgrade DowngradeErrorMessage="A newer version of {{ .Name }} is already installed." />
<Media Cabinet="{{ .ID }}.cab" EmbedCab="yes" Id="1" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="DesktopFolder" Name="Desktop">
<Component Id="ApplicationShortcutDesktop" Guid="{{ guid }}">
<Shortcut
Id="ApplicationDesktopShortcut"
Name="{{ .Name }}"
Description="{{ .Name }} Shortcut"
Target="[INSTALLDIR]{{ .ID }}.exe"
WorkingDirectory="INSTALLDIR"
/>
<RemoveFolder Id="DesktopFolder" On="uninstall" />
<RegistryValue
Root="HKCU"
Key="Software\Microsoft\{{ guid }}"
Name="installed"
Type="integer"
Value="1"
KeyPath="yes"
/>
</Component>
</Directory>
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLDIR" Name="{{ .ID }}">
<Component Guid="{{ guid }}" Id="ApplicationFiles" Win64="yes">
<File Id="windows_{{ .ID }}" Name="{{ .ID }}.exe" Source="{{ .Source }}/{{ .ID }}.exe" />
{{if ne .Engine "chrome" }}
<File Id="WebView2Loader" Name="WebView2Loader.dll" Source="{{ .Source }}/WebView2Loader.dll" />
<File Id="WebviewLib" Name="webview.dll" Source="{{ .Source }}/webview.dll" />
{{end}}
</Component>
<Directory Id="windows_statics" Name="statics">
<Component Guid="{{ guid }}" Id="ApplicationStatics" Win64="yes">
<File Id="windows_statics_icon.png" Name="icon.png" Source="{{ .Source }}/statics/icon.png" />
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" />
</Directory>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Feature
ConfigurableDirectory="INSTALLDIR"
Description="The complete package"
Display="expand"
Id="Complete"
Level="1"
Title="{{ .Name }} {{ .Version }}"
>
<Feature
Absent="disallow"
Description="{{ .Description }}"
Id="MainProgram"
Level="1"
Title="{{ .Name }}"
>
<ComponentRef Id="ApplicationShortcutDesktop" />
<ComponentRef Id="ApplicationFiles" />
<ComponentRef Id="ApplicationStatics" />
</Feature>
</Feature>
</Product>
</Wix>