Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Dec 11, 2019
1 parent 5b1c8fb commit 92161a6
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.1] - 2019-12-11
### Added
- DpiAwareness
- Application ID column
- support for DeploymentAction='OptionalInstallation'


## [1.0] - 2019-10-19
### Added
- Added italian translation thx @irondave
Expand Down
3 changes: 3 additions & 0 deletions wumgr/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2"/>
</System.Windows.Forms.ApplicationConfigurationSection>
</configuration>
2 changes: 1 addition & 1 deletion wumgr/Common/MiscFunc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static public bool IsRunningAsUwp()
}
}

static private bool IsWindows7OrLower
static public bool IsWindows7OrLower
{
get
{
Expand Down
2 changes: 2 additions & 0 deletions wumgr/MsUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public MsUpdate(IUpdateHistoryEntry2 update)
Description = update.Description;
Date = update.Date;
SupportUrl = update.SupportUrl;
ApplicationID = update.ClientApplicationID;

State = UpdateState.History;

Expand Down Expand Up @@ -144,6 +145,7 @@ public IUpdate GetUpdate()
public DateTime Date = DateTime.MinValue;
public decimal Size = 0;
public String SupportUrl = "";
public String ApplicationID = "";
public System.Collections.Specialized.StringCollection Downloads = new System.Collections.Specialized.StringCollection();

public enum UpdateState
Expand Down
6 changes: 3 additions & 3 deletions wumgr/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("wumgr")]
[assembly: AssemblyCopyright("Copyright © DavidXanatos 2018-2019")]
[assembly: AssemblyCopyright("Copyright © DavidXanatos 2018-2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyVersion("1.1.0")]
[assembly: AssemblyFileVersion("1.1.0")]
1 change: 1 addition & 0 deletions wumgr/Translate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ static public void Load(string lang = "")
mStrings.Add("col_title", "Title");
mStrings.Add("col_cat", "Category");
mStrings.Add("col_kb", "KB Article");
mStrings.Add("col_app_id", "Application ID");
mStrings.Add("col_date", "Date");
mStrings.Add("col_site", "Size");
mStrings.Add("col_stat", "State");
Expand Down
9 changes: 8 additions & 1 deletion wumgr/WuAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,14 @@ private RetCodes SearchForUpdates()
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa386526(v=VS.85).aspx
try
{
mSearchJob = mUpdateSearcher.BeginSearch("(IsInstalled = 0 and IsHidden = 0) or (IsInstalled = 1 and IsHidden = 0) or (IsHidden = 1)", mCallback, null);
//string query = "(IsInstalled = 0 and IsHidden = 0) or (IsInstalled = 1 and IsHidden = 0) or (IsHidden = 1)";
//string query = "(IsInstalled = 0 and IsHidden = 0) or (IsInstalled = 1 and IsHidden = 0) or (IsHidden = 1) or (IsInstalled = 0 and IsHidden = 0 and DeploymentAction='OptionalInstallation') or (IsInstalled = 1 and IsHidden = 0 and DeploymentAction='OptionalInstallation') or (IsHidden = 1 and DeploymentAction='OptionalInstallation')";
string query;
if (MiscFunc.IsWindows7OrLower)
query = "(IsInstalled = 0 and IsHidden = 0) or (IsInstalled = 1 and IsHidden = 0) or (IsHidden = 1)";
else
query = "(IsInstalled = 0 and IsHidden = 0 and DeploymentAction=*) or (IsInstalled = 1 and IsHidden = 0 and DeploymentAction=*) or (IsHidden = 1 and DeploymentAction=*)";
mSearchJob = mUpdateSearcher.BeginSearch(query, mCallback, null);
}
catch (Exception err)
{
Expand Down
1 change: 1 addition & 0 deletions wumgr/WuMgr.Designer.cs

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

5 changes: 4 additions & 1 deletion wumgr/WuMgr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ void LoadList(List<MsUpdate> List)
string[] strings = new string[] {
Update.Title,
Update.Category,
Update.KB,
CurrentList == UpdateLists.UpdateHistory ? Update.ApplicationID : Update.KB,
Update.Date.ToString(CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern),
FileOps.FormatSize(Update.Size),
State};
Expand Down Expand Up @@ -643,6 +643,9 @@ void SwitchList(UpdateLists List)
suspendChange = false;

CurrentList = List;

updateView.Columns[2].Text = (CurrentList == UpdateLists.UpdateHistory) ? Translate.fmt("col_app_id") : Translate.fmt("col_kb");

LoadList();

UpdateState();
Expand Down
4 changes: 3 additions & 1 deletion wumgr/wumgr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="App.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<COMReference Include="TaskScheduler">
Expand Down

0 comments on commit 92161a6

Please sign in to comment.