fix(windows): use random Guid for uninstaller (wix) (#2208)

* use random `Guid` for uninstaller

* add changefile

* better naming structure for the component
This commit is contained in:
david
2021-07-14 09:38:31 -04:00
committed by GitHub
parent 7ee2dc8b69
commit caa8fcc93e
2 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Fix WIX uninstaller by using unique `GUID` shortcut.

View File

@@ -88,8 +88,7 @@
</Component>
{{/each~}}
{{{resources}}}
<Component Id="CMP_ReadFileShortcut"
Guid="1AF06B42-CD42-4AED-959F-36DB5E512046">
<Component Id="CMP_UninstallShortcut" Guid="*">
<Shortcut Id="UninstallShortcut"
Name="Uninstall {{{product_name}}}"
@@ -110,7 +109,7 @@
</DirectoryRef>
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="81ccebd8-b769-4bed-bdbd-0340f9f7cad1">
<Component Id="ApplicationShortcut" Guid="*">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="{{{product_name}}}"
Description="Runs {{{product_name}}}"
@@ -152,7 +151,7 @@
Title="Shortcuts"
Level="1">
<ComponentRef Id="Path"/>
<ComponentRef Id="CMP_ReadFileShortcut" />
<ComponentRef Id="CMP_UninstallShortcut" />
<ComponentRef Id="ApplicationShortcut" />
<ComponentRef Id="ApplicationShortcutDesktop" />
</Feature>