-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: MSI Installer with Wix Toolset v5
- Loading branch information
1 parent
2eeb15d
commit 8c716f3
Showing
7 changed files
with
373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<Fragment> | ||
<ComponentGroup Id="Components" Directory="INSTALLFOLDER"> | ||
<Files Include="$(var.NETworkManager.TargetDir)**"> | ||
<Exclude Files="$(var.NETworkManager.TargetDir)**\*.pdb" /> | ||
<Exclude Files="$(var.NETworkManager.TargetDir)NETworkManager.exe" /> | ||
</Files> | ||
|
||
<!-- Main content --> | ||
<Component> | ||
<File Id="NETworkManagerExecutable" | ||
Source="$(var.NETworkManager.TargetDir)NETworkManager.exe"> | ||
<Shortcut Name="NETworkManager" | ||
Directory="ProgramMenuFolder" | ||
Advertise="true" | ||
Icon="icon.ico" | ||
Description="A powerful tool for managing networks and troubleshoot network problems!" /> | ||
</File> | ||
</Component> | ||
|
||
<!-- Desktop shortcut --> | ||
<Component Directory="DesktopFolder" Condition="DESKTOPSHORTCUTENABLED=1"> | ||
<RegistryValue Root="HKCU" Key="SOFTWARE\NETworkManager" Name="DesktopShortcutEnabled" Value="1" /> | ||
<Shortcut Name="NETworkManager" | ||
Directory="DesktopFolder" | ||
Target="[#NETworkManagerExecutable]" | ||
Icon="icon.ico" | ||
Description="A powerful tool for managing networks and troubleshoot network problems!" /> | ||
</Component> | ||
|
||
</ComponentGroup> | ||
</Fragment> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<Fragment> | ||
<StandardDirectory Id="ProgramFiles64Folder"> | ||
<Directory Id="INSTALLFOLDER" Name="NETworkManager" /> | ||
</StandardDirectory> | ||
</Fragment> | ||
</Wix> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project Sdk="WixToolset.Sdk/5.0.0"> | ||
<ItemGroup> | ||
<None Include="LICENSE.rtf" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="WixToolset.UI.wixext" Version="5.0.0" /> | ||
<ProjectReference Include="..\NETworkManager\NETworkManager.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- | ||
This file contains the declaration of all the localizable strings. | ||
--> | ||
<WixLocalization xmlns="http://wixtoolset.org/schemas/v4/wxl" Culture="en-US"> | ||
|
||
<String Id="DowngradeError" Value="A newer version of [ProductName] is already installed." /> | ||
|
||
</WixLocalization> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> | ||
<?define ProductVersion="0.0.0" ?> | ||
|
||
<Package Name="NETworkManager 20$(var.ProductVersion).0" | ||
Manufacturer="BornToBeRoot" | ||
Version="$(var.ProductVersion)" | ||
UpgradeCode="e343d8ab-ed71-41d1-9784-6f6860bda078"> | ||
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" /> | ||
|
||
<!-- Include CAB file in MSI --> | ||
<MediaTemplate EmbedCab="true" /> | ||
|
||
<!-- Icon --> | ||
<Icon Id="icon.ico" SourceFile="$(var.NETworkManager.ProjectDir)NETworkManager.ico" /> | ||
<Property Id="ARPPRODUCTICON" Value="icon.ico" /> | ||
|
||
<!-- UI --> | ||
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)LICENSE.rtf" /> | ||
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" > | ||
</ui:WixUI> | ||
|
||
<!-- Features --> | ||
<Feature Id="Main" Title="NETworkManager"> | ||
<ComponentGroupRef Id="Components" /> | ||
</Feature> | ||
</Package> | ||
|
||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters