Skip to content

Commit

Permalink
Windows installer: Optionally add to Start menu and Desktop.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinling committed Jul 9, 2024
1 parent ad19815 commit 5915485
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions wix/main.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,48 @@
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Packetry"/>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop"/>
</Directory>

<DirectoryRef Id='ApplicationProgramsFolder'>
<Component Id='AppStart' Guid='5e4f3323-9448-4272-83ce-4396021ab7cd'>
<Shortcut Id='AppStartShortcut'
Name='Packetry'
Description='A fast, intuitive USB 2.0 protocol analysis application for use with Cynthion.'
Target='[APPLICATIONFOLDER]bin\packetry.exe'
WorkingDirectory='APPLICATIONROOTDIRECTORY'/>
<RemoveFolder Id='ApplicationProgramsFolder' On='uninstall'/>
<RegistryValue
Root='HKCU'
Key='Software\greatscottgadgets\packetry'
Name='StartShortcut'
Type='integer'
Value='1'
KeyPath='yes'/>
</Component>
</DirectoryRef>

<DirectoryRef Id='DesktopFolder'>
<Component Id='AppDesk' Guid='af742564-506d-4eba-8ae9-3628369e4117'>
<Shortcut Id='AppDeskShortcut'
Name='Packetry'
Description='A fast, intuitive USB 2.0 protocol analysis application for use with Cynthion.'
Target='[APPLICATIONFOLDER]bin\packetry.exe'
WorkingDirectory='APPLICATIONROOTDIRECTORY'/>
<RemoveFolder Id='DesktopFolder' On='uninstall'/>
<RegistryValue
Root='HKCU'
Key='Software\greatscottgadgets\packetry'
Name='DeskShortcut'
Type='integer'
Value='1'
KeyPath='yes'/>
</Component>
</DirectoryRef>

<Feature
Id='Binaries'
Title='Application'
Expand Down Expand Up @@ -324,6 +364,28 @@
Absent='allow'>
<ComponentRef Id='Path'/>
</Feature>

<Feature
Id='StartShort'
Title='Add to Start menu'
Description='Add a shortcut to the start menu'
Level='1'
AllowAdvertise='no'
Display='expand'
Absent='allow'>
<ComponentRef Id="AppStart"/>
</Feature>

<Feature
Id='DeskShort'
Title='Desktop shortcut'
Description='Add a shortcut to the desktop'
Level='1'
AllowAdvertise='no'
Display='expand'
Absent='allow'>
<ComponentRef Id="AppDesk"/>
</Feature>
</Feature>

<SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/>
Expand Down

0 comments on commit 5915485

Please sign in to comment.