mirror of
https://github.com/wangdage12/Snap.Hutao.git
synced 2026-02-18 02:42:15 +08:00
完善安装
添加桌面图标,修正注册表安装目标
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
<Feature Id="ProductFeature" Title="Snap.Hutao" Level="1">
|
<Feature Id="ProductFeature" Title="Snap.Hutao" Level="1">
|
||||||
<ComponentGroupRef Id="MainAppComponents" />
|
<ComponentGroupRef Id="MainAppComponents" />
|
||||||
<ComponentRef Id="ApplicationShortcut" />
|
<ComponentRef Id="ApplicationShortcut" />
|
||||||
|
<ComponentRef Id="DesktopShortcuts" />
|
||||||
</Feature>
|
</Feature>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
@@ -22,11 +23,24 @@
|
|||||||
<StandardDirectory Id="ProgramMenuFolder">
|
<StandardDirectory Id="ProgramMenuFolder">
|
||||||
<Directory Id="ApplicationProgramsFolder" Name="Snap Hutao" />
|
<Directory Id="ApplicationProgramsFolder" Name="Snap Hutao" />
|
||||||
</StandardDirectory>
|
</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>
|
||||||
|
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder" Guid="*">
|
<Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder" Guid="*">
|
||||||
|
|
||||||
<Shortcut Id="ApplicationStartMenuShortcut"
|
<Shortcut Id="ApplicationStartMenuShortcut"
|
||||||
Name="Snap Hutao"
|
Name="Snap Hutao"
|
||||||
Description="Snap Hutao Client"
|
Description="Snap Hutao Client"
|
||||||
@@ -35,7 +49,7 @@
|
|||||||
|
|
||||||
<RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall" />
|
<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>
|
</Component>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
</Wix>
|
</Wix>
|
||||||
|
|||||||
Reference in New Issue
Block a user