完善安装

添加桌面图标,修正注册表安装目标
This commit is contained in:
hoshiizumiya
2025-11-23 20:10:02 +08:00
committed by GitHub
parent 3f50507490
commit 1039623cbf

View File

@@ -11,6 +11,7 @@
<Feature Id="ProductFeature" Title="Snap.Hutao" Level="1">
<ComponentGroupRef Id="MainAppComponents" />
<ComponentRef Id="ApplicationShortcut" />
<ComponentRef Id="DesktopShortcuts" />
</Feature>
</Package>
@@ -22,11 +23,24 @@
<StandardDirectory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Snap Hutao" />
</StandardDirectory>
<StandardDirectory Id="DesktopFolder" />
</Fragment>
<Fragment>
<Component Id="DesktopShortcuts" Directory="DesktopFolder" Guid="*">
<Shortcut Id="DesktopShortcut_Normal"
Name="Snap Hutao"
Description="Snap Hutao Client"
Target="[INSTALLFOLDER]Snap.Hutao.exe"
WorkingDirectory="INSTALLFOLDER" />
<RegistryValue Root="HKLM" Key="Software\Snap.Hutao" Name="DesktopShortcutInstalled" Type="integer" Value="1" KeyPath="yes" />
</Component>
</Fragment>
<Fragment>
<Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder" Guid="*">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="Snap Hutao"
Description="Snap Hutao Client"
@@ -35,7 +49,7 @@
<RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\Snap.Hutao" Name="installed" Type="integer" Value="1" KeyPath="yes" />
<RegistryValue Root="HKLM" Key="Software\Snap.Hutao" Name="StartMenuShortcutInstalled" Type="integer" Value="1" KeyPath="yes" />
</Component>
</Fragment>
</Wix>