|
21 | 21 | <Component Id="MainExecutable" Bitness="always64"> |
22 | 22 | <File Id="MissionPlannerExecutable" |
23 | 23 | Source="!(bindpath.PublishDir)MissionPlanner.exe" |
24 | | - KeyPath="yes"> |
25 | | - <Shortcut Id="StartMenuShortcut" |
26 | | - Directory="CommonProgramsFolder" |
27 | | - Name="Mission Planner (Avalonia)" |
28 | | - Description="Ground control station for ArduPilot vehicles" |
29 | | - WorkingDirectory="INSTALLFOLDER" |
30 | | - Advertise="yes" |
31 | | - Icon="MissionPlanner.exe" /> |
32 | | - <Shortcut Id="DesktopShortcut" |
33 | | - Directory="CommonDesktopFolder" |
34 | | - Name="Mission Planner (Avalonia)" |
35 | | - Description="Ground control station for ArduPilot vehicles" |
36 | | - WorkingDirectory="INSTALLFOLDER" |
37 | | - Advertise="yes" |
38 | | - Icon="MissionPlanner.exe" /> |
39 | | - </File> |
| 24 | + KeyPath="yes" /> |
40 | 25 | </Component> |
41 | 26 |
|
42 | 27 | <!-- SQLite's native PE is versioned but language-neutral. LANGID 0 keeps MSI repair |
|
54 | 39 | </Files> |
55 | 40 | </Directory> |
56 | 41 | </StandardDirectory> |
| 42 | + |
| 43 | + <!-- Non-advertised shortcuts must use an HKCU registry value as their component |
| 44 | + key path (ICE43). Keeping each shortcut in a per-user-only component also |
| 45 | + avoids mixing it with the per-machine executable component (ICE57). --> |
| 46 | + <StandardDirectory Id="ProgramMenuFolder"> |
| 47 | + <Component Id="StartMenuShortcutComponent" Bitness="always64"> |
| 48 | + <Shortcut Id="StartMenuShortcut" |
| 49 | + Name="Mission Planner (Avalonia)" |
| 50 | + Description="Ground control station for ArduPilot vehicles" |
| 51 | + Target="[#MissionPlannerExecutable]" |
| 52 | + WorkingDirectory="INSTALLFOLDER" |
| 53 | + Icon="MissionPlanner.exe" /> |
| 54 | + <RegistryValue Root="HKCU" |
| 55 | + Key="Software\Rouniy\MissionPlannerAvalonia" |
| 56 | + Name="StartMenuShortcut" |
| 57 | + Type="integer" |
| 58 | + Value="1" |
| 59 | + KeyPath="yes" /> |
| 60 | + </Component> |
| 61 | + </StandardDirectory> |
| 62 | + |
| 63 | + <StandardDirectory Id="DesktopFolder"> |
| 64 | + <Component Id="DesktopShortcutComponent" Bitness="always64"> |
| 65 | + <Shortcut Id="DesktopShortcut" |
| 66 | + Name="Mission Planner (Avalonia)" |
| 67 | + Description="Ground control station for ArduPilot vehicles" |
| 68 | + Target="[#MissionPlannerExecutable]" |
| 69 | + WorkingDirectory="INSTALLFOLDER" |
| 70 | + Icon="MissionPlanner.exe" /> |
| 71 | + <RegistryValue Root="HKCU" |
| 72 | + Key="Software\Rouniy\MissionPlannerAvalonia" |
| 73 | + Name="DesktopShortcut" |
| 74 | + Type="integer" |
| 75 | + Value="1" |
| 76 | + KeyPath="yes" /> |
| 77 | + </Component> |
| 78 | + </StandardDirectory> |
57 | 79 | </Package> |
58 | 80 | </Wix> |
0 commit comments