Skip to content

Commit 57fe971

Browse files
committed
CI: Add MSI Installer Background & Desktop shortcut
1 parent c0b5ab4 commit 57fe971

6 files changed

Lines changed: 14 additions & 7 deletions

File tree

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
22
<Fragment>
33
<ComponentGroup Id="Components" Directory="INSTALLFOLDER">
4+
<!-- Include all files in output -->
45
<Files Include="$(var.NETworkManager.TargetDir)**">
56
<Exclude Files="$(var.NETworkManager.TargetDir)**\*.pdb" />
67
<Exclude Files="$(var.NETworkManager.TargetDir)WebView2Loader.dll" />
78
<Exclude Files="$(var.NETworkManager.TargetDir)NETworkManager.exe" />
89
</Files>
910

10-
<!-- Main content -->
11+
<!-- NETworkManager executable -->
1112
<Component>
1213
<File Id="NETworkManagerExecutable"
1314
Source="$(var.NETworkManager.TargetDir)NETworkManager.exe">
15+
<!-- Startmenu shortcut -->
1416
<Shortcut Name="NETworkManager"
1517
Directory="ProgramMenuFolder"
1618
Advertise="true"
@@ -20,15 +22,14 @@
2022
</Component>
2123

2224
<!-- Desktop shortcut -->
23-
<Component Directory="DesktopFolder" Condition="DESKTOPSHORTCUTENABLED=1">
25+
<Component Directory="DesktopFolder">
2426
<RegistryValue Root="HKCU" Key="SOFTWARE\NETworkManager" Name="DesktopShortcutEnabled" Value="1" />
2527
<Shortcut Name="NETworkManager"
2628
Directory="DesktopFolder"
2729
Target="[#NETworkManagerExecutable]"
2830
Icon="icon.ico"
2931
Description="A powerful tool for managing networks and troubleshoot network problems!" />
30-
</Component>
31-
32+
</Component>
3233
</ComponentGroup>
3334
</Fragment>
3435
</Wix>

Source/NETworkManager.Setup/NETworkManager.Setup.wixproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<Project Sdk="WixToolset.Sdk/5.0.0">
22
<ItemGroup>
3-
<None Include="LICENSE.rtf" />
3+
<Content Include="Resources\WixUIBanner.png" />
4+
<Content Include="Resources\WixUIDialog.png" />
5+
</ItemGroup>
6+
<ItemGroup>
7+
<None Include="Resources\LICENSE.rtf" />
48
</ItemGroup>
59
<ItemGroup>
610
<PackageReference Include="WixToolset.UI.wixext" Version="5.0.0" />

Source/NETworkManager.Setup/Package.wxs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
1717

1818
<!-- UI -->
19-
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)LICENSE.rtf" />
20-
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" />
19+
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)Resources\LICENSE.rtf" />
20+
<WixVariable Id="WixUIBannerBmp" Value="$(var.ProjectDir)Resources\WixUIBanner.png" />
21+
<WixVariable Id="WixUIDialogBmp" Value="$(var.ProjectDir)Resources\WixUIDialog.png" />
22+
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" />
2123

2224
<!-- Features -->
2325
<Feature Id="Main" Title="NETworkManager">
File renamed without changes.
1.72 KB
Loading
4.21 KB
Loading

0 commit comments

Comments
 (0)