|
11 | 11 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
12 | 12 | <Product |
13 | 13 | Id="*" |
14 | | - Name="{{{product_name}}}" |
15 | | - UpgradeCode="{{{upgrade_code}}}" |
| 14 | + Name="{{product_name}}" |
| 15 | + UpgradeCode="{{upgrade_code}}" |
16 | 16 | Language="!(loc.TauriLanguage)" |
17 | | - Manufacturer="{{{manufacturer}}}" |
18 | | - Version="{{{version}}}"> |
| 17 | + Manufacturer="{{manufacturer}}" |
| 18 | + Version="{{version}}"> |
19 | 19 |
|
20 | 20 | <Package Id="*" |
21 | 21 | Keywords="Installer" |
|
42 | 42 | <Media Id="1" Cabinet="app.cab" EmbedCab="yes" /> |
43 | 43 |
|
44 | 44 | {{#if banner_path}} |
45 | | - <WixVariable Id="WixUIBannerBmp" Value="{{{banner_path}}}" /> |
| 45 | + <WixVariable Id="WixUIBannerBmp" Value="{{banner_path}}" /> |
46 | 46 | {{/if}} |
47 | 47 | {{#if dialog_image_path}} |
48 | | - <WixVariable Id="WixUIDialogBmp" Value="{{{dialog_image_path}}}" /> |
| 48 | + <WixVariable Id="WixUIDialogBmp" Value="{{dialog_image_path}}" /> |
49 | 49 | {{/if}} |
50 | 50 | {{#if license}} |
51 | | - <WixVariable Id="WixUILicenseRtf" Value="{{{license}}}" /> |
| 51 | + <WixVariable Id="WixUILicenseRtf" Value="{{license}}" /> |
52 | 52 | {{/if}} |
53 | 53 |
|
54 | | - <Icon Id="ProductIcon" SourceFile="{{{icon_path}}}"/> |
| 54 | + <Icon Id="ProductIcon" SourceFile="{{icon_path}}"/> |
55 | 55 | <Property Id="ARPPRODUCTICON" Value="ProductIcon" /> |
56 | 56 | <Property Id="ARPNOREPAIR" Value="yes" Secure="yes" /> <!-- Remove repair --> |
57 | 57 | <SetProperty Id="ARPNOMODIFY" Value="1" After="InstallValidate" Sequence="execute"/> |
58 | 58 |
|
59 | 59 | <!-- initialize with previous InstallDir --> |
60 | 60 | <Property Id="INSTALLDIR"> |
61 | | - <RegistrySearch Id="PrevInstallDirReg" Root="HKCU" Key="Software\\{{{manufacturer}}}\\{{{product_name}}}" Name="InstallDir" Type="raw"/> |
| 61 | + <RegistrySearch Id="PrevInstallDirReg" Root="HKCU" Key="Software\\{{manufacturer}}\\{{product_name}}" Name="InstallDir" Type="raw"/> |
62 | 62 | </Property> |
63 | 63 |
|
64 | 64 | <!-- launch app checkbox --> |
|
93 | 93 | <Directory Id="TARGETDIR" Name="SourceDir"> |
94 | 94 | <Directory Id="DesktopFolder" Name="Desktop"> |
95 | 95 | <Component Id="ApplicationShortcutDesktop" Guid="*"> |
96 | | - <Shortcut Id="ApplicationDesktopShortcut" Name="{{{product_name}}}" Description="Runs {{{product_name}}}" Target="[!Path]" WorkingDirectory="INSTALLDIR" /> |
| 96 | + <Shortcut Id="ApplicationDesktopShortcut" Name="{{product_name}}" Description="Runs {{product_name}}" Target="[!Path]" WorkingDirectory="INSTALLDIR" /> |
97 | 97 | <RemoveFolder Id="DesktopFolder" On="uninstall" /> |
98 | | - <RegistryValue Root="HKCU" Key="Software\\{{{manufacturer}}}\\{{{product_name}}}" Name="Desktop Shortcut" Type="integer" Value="1" KeyPath="yes" /> |
| 98 | + <RegistryValue Root="HKCU" Key="Software\\{{manufacturer}}\\{{product_name}}" Name="Desktop Shortcut" Type="integer" Value="1" KeyPath="yes" /> |
99 | 99 | </Component> |
100 | 100 | </Directory> |
101 | 101 | <Directory Id="$(var.PlatformProgramFilesFolder)" Name="PFiles"> |
102 | | - <Directory Id="INSTALLDIR" Name="{{{product_name}}}"/> |
| 102 | + <Directory Id="INSTALLDIR" Name="{{product_name}}"/> |
103 | 103 | </Directory> |
104 | 104 | <Directory Id="ProgramMenuFolder"> |
105 | | - <Directory Id="ApplicationProgramsFolder" Name="{{{product_name}}}"/> |
| 105 | + <Directory Id="ApplicationProgramsFolder" Name="{{product_name}}"/> |
106 | 106 | </Directory> |
107 | 107 | </Directory> |
108 | 108 |
|
109 | 109 | <DirectoryRef Id="INSTALLDIR"> |
110 | 110 | <Component Id="RegistryEntries" Guid="*"> |
111 | | - <RegistryKey Root="HKCU" Key="Software\\{{{manufacturer}}}\\{{{product_name}}}"> |
| 111 | + <RegistryKey Root="HKCU" Key="Software\\{{manufacturer}}\\{{product_name}}"> |
112 | 112 | <RegistryValue Name="InstallDir" Type="string" Value="[INSTALLDIR]" KeyPath="yes" /> |
113 | 113 | </RegistryKey> |
114 | 114 | </Component> |
115 | | - <Component Id="Path" Guid="{{{path_component_guid}}}" Win64="$(var.Win64)"> |
116 | | - <File Id="Path" Source="{{{app_exe_source}}}" KeyPath="yes" Checksum="yes"/> |
| 115 | + <Component Id="Path" Guid="{{path_component_guid}}" Win64="$(var.Win64)"> |
| 116 | + <File Id="Path" Source="{{app_exe_source}}" KeyPath="yes" Checksum="yes"/> |
117 | 117 | </Component> |
118 | 118 | {{#each binaries as |bin| ~}} |
119 | 119 | <Component Id="{{ bin.id }}" Guid="{{bin.guid}}" Win64="$(var.Win64)"> |
|
131 | 131 | <File Id="UpdateTaskUninstaller" Source="uninstall-task.ps1" KeyPath="yes" Checksum="yes"/> |
132 | 132 | </Component> |
133 | 133 | {{/if}} |
134 | | - {{{resources}}} |
| 134 | + {{resources}} |
135 | 135 | <Component Id="CMP_UninstallShortcut" Guid="*"> |
136 | 136 |
|
137 | 137 | <Shortcut Id="UninstallShortcut" |
138 | | - Name="Uninstall {{{product_name}}}" |
139 | | - Description="Uninstalls {{{product_name}}}" |
| 138 | + Name="Uninstall {{product_name}}" |
| 139 | + Description="Uninstalls {{product_name}}" |
140 | 140 | Target="[System64Folder]msiexec.exe" |
141 | 141 | Arguments="/x [ProductCode]" /> |
142 | 142 |
|
143 | 143 | <RemoveFolder Id="INSTALLDIR" |
144 | 144 | On="uninstall" /> |
145 | 145 |
|
146 | 146 | <RegistryValue Root="HKCU" |
147 | | - Key="Software\\{{{manufacturer}}}\\{{{product_name}}}" |
| 147 | + Key="Software\\{{manufacturer}}\\{{product_name}}" |
148 | 148 | Name="Uninstaller Shortcut" |
149 | 149 | Type="integer" |
150 | 150 | Value="1" |
|
155 | 155 | <DirectoryRef Id="ApplicationProgramsFolder"> |
156 | 156 | <Component Id="ApplicationShortcut" Guid="*"> |
157 | 157 | <Shortcut Id="ApplicationStartMenuShortcut" |
158 | | - Name="{{{product_name}}}" |
159 | | - Description="Runs {{{product_name}}}" |
| 158 | + Name="{{product_name}}" |
| 159 | + Description="Runs {{product_name}}" |
160 | 160 | Target="[!Path]" |
161 | 161 | Icon="ProductIcon" |
162 | 162 | WorkingDirectory="INSTALLDIR"> |
163 | | - <ShortcutProperty Key="System.AppUserModel.ID" Value="{{{bundle_id}}}"/> |
| 163 | + <ShortcutProperty Key="System.AppUserModel.ID" Value="{{bundle_id}}"/> |
164 | 164 | </Shortcut> |
165 | 165 | <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> |
166 | | - <RegistryValue Root="HKCU" Key="Software\\{{{manufacturer}}}\\{{{product_name}}}" Name="Start Menu Shortcut" Type="integer" Value="1" KeyPath="yes"/> |
| 166 | + <RegistryValue Root="HKCU" Key="Software\\{{manufacturer}}\\{{product_name}}" Name="Start Menu Shortcut" Type="integer" Value="1" KeyPath="yes"/> |
167 | 167 | </Component> |
168 | 168 | </DirectoryRef> |
169 | 169 |
|
|
247 | 247 | </Property> |
248 | 248 |
|
249 | 249 | {{#if download_bootstrapper}} |
250 | | - <CustomAction Id='DownloadAndInvokeBootstrapper' Directory="INSTALLDIR" Execute="deferred" ExeCommand='powershell.exe -NoProfile -windowstyle hidden try [\{] [\[]Net.ServicePointManager[\]]::SecurityProtocol = [\[]Net.SecurityProtocolType[\]]::Tls12 [\}] catch [\{][\}]; Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" ; Start-Process -FilePath "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" -ArgumentList ({{{webview_installer_args}}} '/install') -Wait' Return='check'/> |
| 250 | + <CustomAction Id='DownloadAndInvokeBootstrapper' Directory="INSTALLDIR" Execute="deferred" ExeCommand='powershell.exe -NoProfile -windowstyle hidden try [\{] [\[]Net.ServicePointManager[\]]::SecurityProtocol = [\[]Net.SecurityProtocolType[\]]::Tls12 [\}] catch [\{][\}]; Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" ; Start-Process -FilePath "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" -ArgumentList ({{webview_installer_args}} '/install') -Wait' Return='check'/> |
251 | 251 | <InstallExecuteSequence> |
252 | 252 | <Custom Action='DownloadAndInvokeBootstrapper' Before='InstallFinalize'> |
253 | 253 | <![CDATA[NOT(REMOVE OR WVRTINSTALLED)]]> |
|
257 | 257 |
|
258 | 258 | <!-- Embedded webview bootstrapper mode --> |
259 | 259 | {{#if webview2_bootstrapper_path}} |
260 | | - <Binary Id="MicrosoftEdgeWebview2Setup.exe" SourceFile="{{{webview2_bootstrapper_path}}}"/> |
261 | | - <CustomAction Id='InvokeBootstrapper' BinaryKey='MicrosoftEdgeWebview2Setup.exe' Execute="deferred" ExeCommand='{{{webview_installer_args}}} /install' Return='check' /> |
| 260 | + <Binary Id="MicrosoftEdgeWebview2Setup.exe" SourceFile="{{webview2_bootstrapper_path}}"/> |
| 261 | + <CustomAction Id='InvokeBootstrapper' BinaryKey='MicrosoftEdgeWebview2Setup.exe' Execute="deferred" ExeCommand='{{webview_installer_args}} /install' Return='check' /> |
262 | 262 | <InstallExecuteSequence> |
263 | 263 | <Custom Action='InvokeBootstrapper' Before='InstallFinalize'> |
264 | 264 | <![CDATA[NOT(REMOVE OR WVRTINSTALLED)]]> |
|
268 | 268 |
|
269 | 269 | <!-- Embedded offline installer --> |
270 | 270 | {{#if webview2_installer_path}} |
271 | | - <Binary Id="MicrosoftEdgeWebView2RuntimeInstaller.exe" SourceFile="{{{webview2_installer_path}}}"/> |
272 | | - <CustomAction Id='InvokeStandalone' BinaryKey='MicrosoftEdgeWebView2RuntimeInstaller.exe' Execute="deferred" ExeCommand='{{{webview_installer_args}}} /install' Return='check' /> |
| 271 | + <Binary Id="MicrosoftEdgeWebView2RuntimeInstaller.exe" SourceFile="{{webview2_installer_path}}"/> |
| 272 | + <CustomAction Id='InvokeStandalone' BinaryKey='MicrosoftEdgeWebView2RuntimeInstaller.exe' Execute="deferred" ExeCommand='{{webview_installer_args}} /install' Return='check' /> |
273 | 273 | <InstallExecuteSequence> |
274 | 274 | <Custom Action='InvokeStandalone' Before='InstallFinalize'> |
275 | 275 | <![CDATA[NOT(REMOVE OR WVRTINSTALLED)]]> |
|
0 commit comments