mirror of
https://github.com/wangdage12/Snap.Hutao.git
synced 2026-02-17 15:06:39 +08:00
完善安装
添加桌面图标,修正注册表安装目标
This commit is contained in:
@@ -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>
|
||||
</Wix>
|
||||
|
||||
Reference in New Issue
Block a user