Skip to content

Commit caa8fcc

Browse files
authored
fix(windows): use random Guid for uninstaller (wix) (#2208)
* use random `Guid` for uninstaller * add changefile * better naming structure for the component
1 parent 7ee2dc8 commit caa8fcc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Fix WIX uninstaller by using unique `GUID` shortcut.

tooling/bundler/src/bundle/windows/templates/main.wxs

+3-4
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@
8888
</Component>
8989
{{/each~}}
9090
{{{resources}}}
91-
<Component Id="CMP_ReadFileShortcut"
92-
Guid="1AF06B42-CD42-4AED-959F-36DB5E512046">
91+
<Component Id="CMP_UninstallShortcut" Guid="*">
9392

9493
<Shortcut Id="UninstallShortcut"
9594
Name="Uninstall {{{product_name}}}"
@@ -110,7 +109,7 @@
110109
</DirectoryRef>
111110

112111
<DirectoryRef Id="ApplicationProgramsFolder">
113-
<Component Id="ApplicationShortcut" Guid="81ccebd8-b769-4bed-bdbd-0340f9f7cad1">
112+
<Component Id="ApplicationShortcut" Guid="*">
114113
<Shortcut Id="ApplicationStartMenuShortcut"
115114
Name="{{{product_name}}}"
116115
Description="Runs {{{product_name}}}"
@@ -152,7 +151,7 @@
152151
Title="Shortcuts"
153152
Level="1">
154153
<ComponentRef Id="Path"/>
155-
<ComponentRef Id="CMP_ReadFileShortcut" />
154+
<ComponentRef Id="CMP_UninstallShortcut" />
156155
<ComponentRef Id="ApplicationShortcut" />
157156
<ComponentRef Id="ApplicationShortcutDesktop" />
158157
</Feature>

0 commit comments

Comments
 (0)