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

View File

@@ -96,6 +96,14 @@
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups> <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir> <RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\GpFontHandler_FreeType2\GpFontHandler_FreeType2.vcxproj">
<Name>GpFontHandler_FreeType2</Name>
<Project>{4b564030-8985-4975-91e1-e1b2c16ae2a1}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
<ProjectReference Include="..\gpr2gpa\gpr2gpa.vcxproj"> <ProjectReference Include="..\gpr2gpa\gpr2gpa.vcxproj">
<Name>gpr2gpa</Name> <Name>gpr2gpa</Name>
<Project>{27b7ca46-ed23-45c2-bf5f-0c126d81aebf}</Project> <Project>{27b7ca46-ed23-45c2-bf5f-0c126d81aebf}</Project>