Skip to content

Commit

Permalink
Merged PR 500: V3.2.1 Beta 1
Browse files Browse the repository at this point in the history
Create the first public beta

Related work items: #915
  • Loading branch information
MikeWilliams-UK committed Feb 28, 2022
1 parent 17fcc22 commit b4d2cc2
Show file tree
Hide file tree
Showing 37 changed files with 790 additions and 724 deletions.
Binary file modified docs/Chem4Word-Version3-2-Developer-SetUp.docx
Binary file not shown.
Binary file modified docs/Chem4Word-Version3-2-Technical-Manual.docx
Binary file not shown.
Binary file modified docs/Chem4Word-Version3-2-User-Manual.docx
Binary file not shown.
34 changes: 19 additions & 15 deletions src/Chem4Word.V3/Data/Chem4Word-Versions.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This file must be uploaded to https://www.chem4word.co.uk/files3-2/ folder as Chem4Word-Versions.xml -->
<ChangeLog>
<Id>f3c4f4db-2fff-46db-b14a-feb8e09f7742</Id>
<Version>
<Number>3.2.0 Alpha 0</Number>
<IsBeta>true</IsBeta>
<Released>31-Jan-2022</Released>
<Changes>
<Change>...</Change>
<Change>...</Change>
<Change>...</Change>
<Change>...</Change>
<Change>...</Change>
<Change>...</Change>
</Changes>
</Version>
<EndOfLife>31-Dec-2345</EndOfLife>
<Id>f3c4f4db-2fff-46db-b14a-feb8e09f7742</Id>
<Version>
<Number>3.2.1 Beta 1</Number>
<IsBeta>true</IsBeta>
<Released>28-Feb-2022</Released>
<Changes>
<Change>First public beta of Chem4Word 2022 (V3.2)</Change>
</Changes>
<Url>https://www.chem4word.co.uk/files3-2/Chem4Word-Setup.3.2.1.Beta.1.msi</Url>
</Version>
<Version>
<Number>3.2.1 Alpha 0</Number>
<IsBeta>true</IsBeta>
<Released>21-Feb-2022</Released>
<Changes>
<Change>Private Alpha of Chem4Word 2022 (V3.2)</Change>
</Changes>
</Version>
<EndOfLife>31-Dec-2345</EndOfLife>
</ChangeLog>
2 changes: 1 addition & 1 deletion src/Chem4Word.V3/Data/This-Version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<Version>
<Number>3.2.1 Beta 1</Number>
<IsBeta>true</IsBeta>
<Released>01-Feb-2022</Released>
<Released>28-Feb-2022</Released>
</Version>
4 changes: 4 additions & 0 deletions src/Chem4Word.V3/Data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ <h1><a href="https://www.chem4word.co.uk">Chemistry for Word Add-In 2022</a></h1
<td>Setup Bootstrapper</td>
<td><a href="/files3-2/Chem4Word-Setup.exe">Chem4Word-Setup</a></td>
</tr>
<tr>
<td>Version 3.2.1 - Beta 1</td>
<td><a href="/files3-2/Chem4Word-Setup.3.2.1.Beta.1.msi">Chem4Word-Setup 3.2.1 Beta 1</a></td>
</tr>
<tr>
<td>Version 3.2.0 - Alpha 0</td>
<td>Chem4Word-Setup 3.2.0 Alpha 0</td>
Expand Down
4 changes: 2 additions & 2 deletions src/Chem4Word.V3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
4 changes: 2 additions & 2 deletions src/Chemistry/Chem4Word.ACME/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
4 changes: 2 additions & 2 deletions src/Chemistry/Chem4Word.Libraries/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
4 changes: 2 additions & 2 deletions src/Chemistry/Chem4Word.Model2/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
4 changes: 2 additions & 2 deletions src/Common/Chem4Word.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
4 changes: 2 additions & 2 deletions src/Common/Chem4Word.Telemetry/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
7 changes: 6 additions & 1 deletion src/Common/Chem4Word.Telemetry/SystemHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ private void GetScreens()
Screens = string.Join("; ", screens);
}

private static string OsBits => Environment.Is64BitOperatingSystem ? "64bit" : "32bit";
public static string OsBits => Environment.Is64BitOperatingSystem ? "64bit" : "32bit";

private void GetDotNetVersionFromRegistry()
{
Expand All @@ -421,6 +421,11 @@ private void GetDotNetVersionFromRegistry()
int releaseKey = Convert.ToInt32(ndpKey.GetValue("Release"));

// .Net 4.8
if (releaseKey >= 528449)
{
DotNetVersion = $".NET 4.8 (W11/S2022) [{releaseKey}]";
return;
}
if (releaseKey >= 528372)
{
DotNetVersion = $".NET 4.8 (W10 2004) [{releaseKey}]";
Expand Down
59 changes: 32 additions & 27 deletions src/Common/Chem4Word.Telemetry/TelemetryWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Windows.Forms;
Expand Down Expand Up @@ -144,31 +145,18 @@ private void FixUpWordVersion()

private void WriteStartUpInfo()
{
// Log Add-In Version
WritePrivate("StartUp", "Information", _helper.AddInVersion); // ** Used by Andy's Knime protocol ?

// Log Word Version
FixUpWordVersion();
WritePrivate("StartUp", "Information", _helper.WordProduct); // ** Used by Andy's Knime protocol
AddKnimeProperies();

WritePrivate("StartUp", "Information", $"Internal Version {_helper.WordVersion}");
if (!string.IsNullOrEmpty(_helper.Click2RunProductIds))
{
WritePrivate("StartUp", "Information", _helper.Click2RunProductIds);
}
WritePrivate("StartUp", "Information", Environment.GetCommandLineArgs()[0]);

// Log System
WritePrivate("StartUp", "Information", _helper.SystemOs); // ** Used by Andy's Knime protocol
WritePrivate("StartUp", "Information", _helper.DotNetVersion);
WritePrivate("StartUp", "Information", $"Browser Version: {_helper.BrowserVersion}");

// Log IP Address
if (!_helper.IpAddress.Contains("8.8.8.8"))
{
WritePrivate("StartUp", "Information", _helper.IpAddress); // ** Used by Andy's Knime protocol
WritePrivate("StartUp", "Information", _helper.IpObtainedFrom);
}

if (_helper.StartUpTimings != null)
{
WritePrivate("StartUp", "Timing", string.Join(Environment.NewLine, _helper.StartUpTimings));
Expand Down Expand Up @@ -284,26 +272,43 @@ private void WriteStartUpInfo()
}
#endif

#region Log critical System Info again to ensure we get it
// Add Knime Properies again to ensure they get sent
AddKnimeProperies();

// Log Add-In Version
WritePrivate("StartUp", "Information", _helper.AddInVersion); // ** Used by Andy's Knime protocol ?
_systemInfoSent = true;
}

// Log Word
WritePrivate("StartUp", "Information", _helper.WordProduct); // ** Used by Andy's Knime protocol
private void AddKnimeProperies()
{
// Used by Andy's Knime protocol

// Log System
WritePrivate("StartUp", "Information", _helper.SystemOs); // ** Used by Andy's Knime protocol
// OS Info
if (string.IsNullOrEmpty(_wmiHelper.OSVersion) || string.IsNullOrEmpty(_wmiHelper.OSCaption))
{
WritePrivate("StartUp", "Information", _helper.SystemOs);
}
else
{
string bits = Environment.Is64BitOperatingSystem ? "64bit" : "32bit";
string culture = CultureInfo.CurrentCulture.Name;
WritePrivate("StartUp", "Information", $"{_wmiHelper.OSCaption} {bits} [{_wmiHelper.OSVersion}] {culture}");
}

// Dot Net Version
WritePrivate("StartUp", "Information", _helper.DotNetVersion);

// Log IP Address
// Word Version
WritePrivate("StartUp", "Information", _helper.WordProduct);

// Add-In Version
WritePrivate("StartUp", "Information", _helper.AddInVersion);

// IP Address
if (!_helper.IpAddress.Contains("8.8.8.8"))
{
WritePrivate("StartUp", "Information", _helper.IpAddress); // ** Used by Andy's Knime protocol
WritePrivate("StartUp", "Information", _helper.IpObtainedFrom);
}

#endregion Log critical System Info again to ensure we get it

_systemInfoSent = true;
}

private void WritePrivate(string operation, string level, string message)
Expand Down
49 changes: 48 additions & 1 deletion src/Common/Chem4Word.Telemetry/WmiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Chem4Word.Telemetry
public class WmiHelper
{
private const string QueryProcessor = "SELECT Name,NumberOfLogicalProcessors,CurrentClockSpeed FROM Win32_Processor";
private const string QueryOperatingSystem = "SELECT ProductType FROM Win32_OperatingSystem";
private const string QueryOperatingSystem = "SELECT ProductType,Caption,Version FROM Win32_OperatingSystem";
private const string QueryPhysicalMemory = "SELECT Capacity FROM Win32_PhysicalMemory";
private const string QueryAntiVirusProduct = "SELECT DisplayName,ProductState FROM AntiVirusProduct";

Expand Down Expand Up @@ -122,6 +122,50 @@ public string PhysicalMemory
}
}

private string _osCaption;

public string OSCaption
{
get
{
if (_osCaption == null)
{
try
{
GetWin32OperatingSystemData();
}
catch (Exception)
{
//
}
}

return _osCaption;
}
}

private string _osVersion;

public string OSVersion
{
get
{
if (_osVersion == null)
{
try
{
GetWin32OperatingSystemData();
}
catch (Exception)
{
//
}
}

return _osVersion;
}
}

private string _productType;

public string ProductType
Expand Down Expand Up @@ -242,6 +286,9 @@ private void GetWin32OperatingSystemData()
_productType = Unknown + $" [{productType}]";
break;
}

_osCaption = mgtObject["Caption"].ToString();
_osVersion = mgtObject["Version"].ToString();
}
}
catch
Expand Down
4 changes: 2 additions & 2 deletions src/Installer/Chem4WordSetup/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
2 changes: 1 addition & 1 deletion src/Installer/Chem4WordSetup/Setup.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Installer/Chem4WordUpdater/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
4 changes: 2 additions & 2 deletions src/Installer/WiX.CustomAction/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.2.1.8067")]
[assembly: AssemblyFileVersion("3.2.1.8067")]
[assembly: AssemblyVersion("3.2.1.8094")]
[assembly: AssemblyFileVersion("3.2.1.8094")]
Loading

0 comments on commit b4d2cc2

Please sign in to comment.