Skip to content

Commit

Permalink
Upgrade to WiX v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed May 11, 2024
1 parent 4d1acf2 commit f9a4498
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
19 changes: 4 additions & 15 deletions wix/Moonlight/Moonlight.wixproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="WixToolset.Sdk/4.0.4" ToolsVersion="4.0">
<Project Sdk="WixToolset.Sdk/5.0.0" ToolsVersion="5.0">
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
Expand All @@ -9,26 +9,15 @@
<PropertyGroup>
<DefineConstants>DeployDir=$(DEPLOY_FOLDER);BuildDir=$(BUILD_FOLDER)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<HarvestDirectory Include="$(DEPLOY_FOLDER)">
<ComponentGroupName>MoonlightDependencies</ComponentGroupName>
<DirectoryRefId>INSTALLFOLDER</DirectoryRefId>
<PreprocessorVariable>DeployDir</PreprocessorVariable>
<SuppressRootDirectory>true</SuppressRootDirectory>
<SuppressCom>true</SuppressCom>
<SuppressRegistry>true</SuppressRegistry>
</HarvestDirectory>
<BindPath Include="$(DEPLOY_FOLDER)" />
</ItemGroup>
<PropertyGroup Condition="$(SIGN)!=''">
<SignOutput>true</SignOutput>
</PropertyGroup>
<Target Name="SignMsi">
<Exec Command='signtool.exe $(SIGNTOOL_PARAMS) %(SignMsi.FullPath)' />
</Target>
<ItemGroup>
<PackageReference Include="WixToolset.Firewall.wixext" Version="4.0.4" />
<PackageReference Include="WixToolset.Util.wixext" Version="4.0.4" />
<PackageReference Include="WixToolset.Heat" Version="4.0.4" />
<PackageReference Include="WixToolset.Firewall.wixext" Version="5.0.0" />
<PackageReference Include="WixToolset.Util.wixext" Version="5.0.0" />
<PackageReference Include="WixToolset.Heat" Version="5.0.0" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions wix/Moonlight/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
</Component>
</DirectoryRef>

<ComponentGroup Id="MoonlightDependencies" Directory="INSTALLFOLDER">
<Files Include="$(var.DeployDir)\**" />
</ComponentGroup>

<Feature Id="ProductFeature" Title="Moonlight" Level="1" ConfigurableDirectory="INSTALLFOLDER">
<ComponentRef Id="Moonlight" />
<ComponentRef Id="MoonlightShortcuts" />
Expand Down
6 changes: 3 additions & 3 deletions wix/MoonlightSetup/MoonlightSetup.wixproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="WixToolset.Sdk/4.0.4">
<Project Sdk="WixToolset.Sdk/5.0.0">
<PropertyGroup>
<OutputType>Bundle</OutputType>
</PropertyGroup>
Expand All @@ -19,7 +19,7 @@
<Exec Command='signtool.exe $(SIGNTOOL_PARAMS) %(SignBundle.FullPath)' />
</Target>
<ItemGroup>
<PackageReference Include="WixToolset.Bal.wixext" Version="4.0.4" />
<PackageReference Include="WixToolset.Util.wixext" Version="4.0.4" />
<PackageReference Include="WixToolset.Bal.wixext" Version="5.0.0" />
<PackageReference Include="WixToolset.Util.wixext" Version="5.0.0" />
</ItemGroup>
</Project>

0 comments on commit f9a4498

Please sign in to comment.