Add desktop shortcut

This commit is contained in:
elasota
2020-09-12 12:09:59 -04:00
parent 5ab7a675a3
commit 480a4b6098
2 changed files with 27 additions and 2 deletions

View File

@@ -48,6 +48,10 @@
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Aerofoil"/>
</Directory>
<!-- Desktop -->
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<DirectoryRef Id="AEROFOILPRODUCTDIR">
@@ -128,8 +132,20 @@
Description="Aerofoil Documentation"
Target="[#readme.txt]"
WorkingDirectory="AEROFOILDOCUMENTATIONDIR"/>
<RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\AerofoilProject\Aerofoil" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
<RemoveFolder Id="CleanUpShortCutStartMenu" Directory="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\AerofoilProject\Aerofoil" Name="installed_startmenu" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="DesktopFolder">
<Component Id="DesktopShortcuts" Guid="*">
<Shortcut Id="ApplicationDesktopShortcut"
Name="Aerofoil"
Description="Aerofoil"
Target="[#Aerofoil.exe]"
WorkingDirectory="AEROFOILPRODUCTDIR"/>
<RemoveFolder Id="CleanUpShortCutDesktop" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\AerofoilProject\Aerofoil" Name="installed_desktop" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
@@ -154,6 +170,7 @@
<ComponentGroupRef Id="LooseDocumentationComponentGroup"/>
<ComponentRef Id="StartMenuShortcuts" />
<ComponentRef Id="DesktopShortcuts" />
<Feature Id="HousePack1Feature" Title="Additional Houses" Level="1" Description="!(loc.HousePack1FeatureDescription)">
<ComponentGroupRef Id="HousePack1ComponentGroup" />