Skip to content

Commit

Permalink
Merge branch 'main' into feature/darwin-install-script
Browse files Browse the repository at this point in the history
  • Loading branch information
portertech authored Jul 5, 2023
2 parents 9b7d16e + be31fa7 commit a8b4053
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 19 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- chore(packaging): wix 4.0.1 [#1184]

[#1184]: https://github.com/SumoLogic/sumologic-otel-collector/pull/1184

## [v0.80.0-sumo-0]

### Released 2023-06-30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixToolset.Dtf.CustomAction" Version="4.0.0-preview.1" />
<PackageReference Include="WixToolset.Dtf.CustomAction" Version="4.0.1" />
<PackageReference Include="YamlDotNet" Version="12.0.2" />
</ItemGroup>

Expand Down
22 changes: 13 additions & 9 deletions packaging/msi/wix/folders.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
<?include variables.wxi ?>

<Fragment>
<StandardDirectory Id="$(PlatformProgramFilesFolder)">
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.Manufacturer)\!(bind.Property.ProductName)">
<Directory Id="BinFolder" Name="bin" />
<StandardDirectory Id="ProgramFiles6432Folder">
<Directory Id="CompanyFolder" Name="!(bind.Property.Manufacturer)">
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.ProductName)">
<Directory Id="BinFolder" Name="bin" />
</Directory>
</Directory>
</StandardDirectory>

<StandardDirectory Id="CommonAppDataFolder">
<Directory Id="APPDATAFOLDER" Name="!(bind.Property.Manufacturer)\!(bind.Property.ProductName)">
<Directory Id="ConfigFolder" Name="config">
<Directory Id="ConfigFragmentsFolder" Name="conf.d" />
</Directory>
<Directory Id="DataFolder" Name="data">
<Directory Id="FileStorageFolder" Name="file_storage" />
<Directory Id="CompanyAppDataFolder" Name="!(bind.Property.Manufacturer)">
<Directory Id="APPDATAFOLDER" Name="!(bind.Property.ProductName)">
<Directory Id="ConfigFolder" Name="config">
<Directory Id="ConfigFragmentsFolder" Name="conf.d" />
</Directory>
<Directory Id="DataFolder" Name="data">
<Directory Id="FileStorageFolder" Name="file_storage" />
</Directory>
</Directory>
</Directory>
</StandardDirectory>
Expand Down
6 changes: 3 additions & 3 deletions packaging/msi/wix/otelcol-sumo.wixproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="WixToolset.Sdk/4.0.0-preview.1" InitialTargets="PlatformCheck">
<Project Sdk="WixToolset.Sdk/4.0.1" InitialTargets="PlatformCheck">
<PropertyGroup>
<ProductVersion>1.0.0.0</ProductVersion>
<ProjectGuid>25ec8859-fe5e-4110-a6e4-915b6ed83072</ProjectGuid>
Expand Down Expand Up @@ -37,8 +37,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="WixToolset.Netfx.wixext" Version="4.0.0-preview.1" />
<PackageReference Include="WixToolset.UI.wixext" Version="4.0.0-preview.1" />
<PackageReference Include="WixToolset.Netfx.wixext" Version="4.0.1" />
<PackageReference Include="WixToolset.UI.wixext" Version="4.0.1" />
</ItemGroup>

<!-- <PropertyGroup Condition="'$(Platform)' == 'arm64'"> -->
Expand Down
7 changes: 5 additions & 2 deletions packaging/msi/wix/ui/otelcol-sumo.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
See http://opensource.org/licenses/ms-rl for full license information.
-->
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?foreach WIXUIARCH in X86;X64;A64 ?>
<Fragment>
<UI Id="WixUI_OtelcolSumo">
<UI Id="WixUI_OtelcolSumo_$(WIXUIARCH)">
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
Expand All @@ -29,11 +30,12 @@
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" />

<Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" />
<Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" Condition="LicenseAccepted = &quot;1&quot;" />
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="CustomizeDlg" Condition="LicenseAccepted = &quot;1&quot;" />

<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="1" Condition="Installed" />
<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg" Order="2" Condition="NOT Installed" />
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" />
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="ConfigurationDlg" />

<Publish Dialog="ConfigurationDlg" Control="Back" Event="NewDialog" Value="CustomizeDlg" />
<Publish Dialog="ConfigurationDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" />
Expand All @@ -54,4 +56,5 @@

<UIRef Id="WixUI_Common" />
</Fragment>
<?endforeach?>
</Wix>
5 changes: 1 addition & 4 deletions packaging/msi/wix/variables.wxi
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?if $(sys.BUILDARCH)="arm64" ?>
<?define PlatformProgramFilesFolder="ProgramFiles64Folder" ?>
<?define OtelcolBinary="otelcol-sumo-windows_arm64.exe" ?>
<?elseif $(sys.BUILDARCH)="x64" ?>
<?define PlatformProgramFilesFolder="ProgramFiles64Folder" ?>
<?define OtelcolBinary="otelcol-sumo-windows_amd64.exe" ?>
<?elseif $(sys.BUILDARCH)="x86" ?>
<?define PlatformProgramFilesFolder="ProgramFilesFolder" ?>
<?define OtelcolBinary="otelcol-sumo-windows_arm64.exe" ?>
<?define OtelcolBinary="otelcol-sumo-windows_386.exe" ?>
<?else ?>
<?error Unsupported BUILDARCH: $(sys.BUILDARCH) ?>
<?endif ?>
Expand Down

0 comments on commit a8b4053

Please sign in to comment.