Files
PSG-Conduit/src-tauri/wix/desktop-shortcut.wxs
Bailey 3b04cc77cb
Some checks failed
Release / build-windows (push) Has been cancelled
feat: v0.2.0 — real branding, desktop shortcut, WiX installer images
2026-05-27 10:42:26 +08:00

38 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
WiX fragment: desktop shortcut for PSG Launcher.
Tauri's generated main.wxs already declares DesktopFolder at line 94,
so we reference it directly — no need to redeclare it here.
Referenced from tauri.conf.json:
bundle.windows.wix.fragmentPaths → ["wix/desktop-shortcut.wxs"]
bundle.windows.wix.componentRefs → ["DesktopShortcutComponent"]
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="DesktopFolder">
<Component Id="DesktopShortcutComponent"
Guid="E3A7F2B1-4C8D-4E9A-B3F6-1D2E5A7C9B0F">
<Shortcut Id="PSGLauncherDesktopShortcut"
Name="PSG Launcher"
Description="PSG Launcher — all-in-one app launcher"
Target="[APPLICATIONFOLDER]psg-launcher.exe"
WorkingDirectory="APPLICATIONFOLDER" />
<RemoveFolder Id="RemoveDesktopFolder"
Directory="DesktopFolder"
On="uninstall" />
<RegistryValue Root="HKCU"
Key="Software\PSG\Launcher"
Name="DesktopShortcut"
Type="integer"
Value="1"
KeyPath="yes" />
</Component>
</DirectoryRef>
</Fragment>
</Wix>