Skip to content

Commit

Permalink
* Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagnerp committed Mar 27, 2018
1 parent d987b42 commit 11bf518
Show file tree
Hide file tree
Showing 57 changed files with 2,925 additions and 25,470 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,60 @@ public string GetVirusTotalScanURL()
return _xmlFileApplicationUpdaterSettings.VirusTotalScanURL;
}

/// <summary>
/// Sets the KnowledgebaseArticleNumber to the value of value.
/// </summary>
/// <param name="value">The desired value of KnowledgebaseArticleNumber.</param>
public void SetKnowledgebaseArticleNumber(string value)
{
_xmlFileApplicationUpdaterSettings.KnowledgebaseArticleNumber = value;
}

/// <summary>
/// Returns the value of the KnowledgebaseArticleNumber.
/// </summary>
/// <returns>The value of the KnowledgebaseArticleNumber.</returns>
public string GetKnowledgebaseArticleNumber()
{
return _xmlFileApplicationUpdaterSettings.KnowledgebaseArticleNumber;
}

/// <summary>
/// Sets the KnowledgebaseArticleNumberURL to the value of value.
/// </summary>
/// <param name="value">The desired value of KnowledgebaseArticleNumberURL.</param>
public void SetKnowledgebaseArticleNumberURL(string value)
{
_xmlFileApplicationUpdaterSettings.KnowledgebaseArticleNumberURL = value;
}

/// <summary>
/// Returns the value of the KnowledgebaseArticleNumberURL.
/// </summary>
/// <returns>The value of the KnowledgebaseArticleNumberURL.</returns>
public string GetKnowledgebaseArticleNumberURL()
{
return _xmlFileApplicationUpdaterSettings.KnowledgebaseArticleNumberURL;
}

/// <summary>
/// Sets the UpdatePackageDescription to the value of value.
/// </summary>
/// <param name="value">The desired value of UpdatePackageDescription.</param>
public void SetUpdatePackageDescription(string value)
{
_xmlFileApplicationUpdaterSettings.UpdatePackageDescription = value;
}

/// <summary>
/// Returns the value of the UpdatePackageDescription.
/// </summary>
/// <returns>The value of the UpdatePackageDescription.</returns>
public string GetUpdatePackageDescription()
{
return _xmlFileApplicationUpdaterSettings.UpdatePackageDescription;
}

/// <summary>
/// Sets the UpdatePackageReleaseDate to the value of value.
/// </summary>
Expand Down Expand Up @@ -561,6 +615,24 @@ public long GetUpdatePackageFileSize()
{
return _xmlFileApplicationUpdaterSettings.UpdatePackageFileSize;
}

/// <summary>
/// Sets the InstallCountdown to the value of value.
/// </summary>
/// <param name="value">The desired value of InstallCountdown.</param>
public void SetInstallCountdown(int value)
{
_xmlFileApplicationUpdaterSettings.InstallCountdown = value;
}

/// <summary>
/// Returns the value of the InstallCountdown.
/// </summary>
/// <returns>The value of the InstallCountdown.</returns>
public int GetInstallCountdown()
{
return _xmlFileApplicationUpdaterSettings.InstallCountdown;
}
#endregion

#region Methods
Expand All @@ -585,6 +657,8 @@ public void ResetToDefaults()

SetUpdatePackageName(string.Empty);

SetUpdatePackageDescription(string.Empty);

SetUpdatePackageServerURLDownloadLocation(string.Empty);

SetChangelogServerURLDownloadLocation(string.Empty);
Expand All @@ -611,12 +685,18 @@ public void ResetToDefaults()

SetVirusTotalScanURL(string.Empty);

SetKnowledgebaseArticleNumber(string.Empty);

SetKnowledgebaseArticleNumberURL(string.Empty);

SetUpdatePackageReleaseDate(DateTime.Now);

SetUpdatePackageBuildDate(DateTime.Now);

SetUpdatePackageFileSize(0);

SetInstallCountdown(60);

SaveXMLFileApplicationUpdaterSettings(GetAlwaysUsePrompt());

if (KryptonMessageBox.Show($"Done! Do you want to restart the application now?", "Action Complete", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,29 @@ public interface IXMLData
/// The virus total scan URL.
/// </value>
String VirusTotalScanURL { get; set; }

/// <summary>
/// Gets or sets the knowledgebase article number.
/// </summary>
/// <value>
/// The knowledgebase article number.
/// </value>
String KnowledgebaseArticleNumber { get; set; }

/// <summary>
/// Gets or sets the knowledgebase article number URL.
/// </summary>
/// <value>
/// The knowledgebase article number URL.
/// </value>
String KnowledgebaseArticleNumberURL { get; set; }

/// <summary>
/// Gets or sets the update package description.
/// </summary>
/// <value>
/// The update package description.
/// </value>
String UpdatePackageDescription { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.70.326.0")]
[assembly: AssemblyFileVersion("4.70.326.0")]
[assembly: AssemblyVersion("4.70.330.0")]
[assembly: AssemblyFileVersion("4.70.330.0")]
[assembly: NeutralResourcesLanguage("en-GB")]

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--This file is entirely optional. Use as required.-->
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<!--This file is entirely optional. Use as required.-->
<checkSums applicationIdentification="MyCoolApplication">
<fileName>My Cool Application Installer.exe</fileName>
<fileURL>http://#SOME_DOMAIN/files/My Cool Application Installer.exe</fileURL>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<!--A sample 'Update.xml' file.-->
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<!--A sample 'Update.xml' file.-->
<update applicationIdentification="MyCoolApplication">
<applicationName>My Cool Application</applicationName>
<serverVersion>1.0.0.0</serverVersion>
<buildString>1234abc</buildString>
<updatePackageType>Hotfix</updatePackageType>
<updatePackageSeverity>None</updatePackageSeverity>
<updatePackageName>My Cool Application Installer.exe</updatePackageName>
<updatePackageDescription></updatePackageDescription>
<updatePackageServerURLDownloadLocation>http://#SOME_DOMAIN/files/My Cool Application Installer.exe</updatePackageServerURLDownloadLocation>
<changelogServerURLDownloadLocation>http://#SOME_DOMAIN/files/MyCoolApplicationChangelog.html</changelogServerURLDownloadLocation>
<specialisedUpdateIconURL>http://#SOME_DOMAIN/files/MyCoolApplicationUpdater.ico</specialisedUpdateIconURL>
Expand All @@ -18,6 +19,8 @@
<ripemd160CheckSum></ripemd160CheckSum>
<optionalArguments>/taskkill /pid 00000</optionalArguments>
<checkSumFileURL>http://#SOME_DOMAIN/files/CheckSums.xml</checkSumFileURL>
<knowledgebaseArticleNumber>000000</knowledgebaseArticleNumber>
<knowledgebaseArticleNumberURL>http://#SOME_DOMAIN/files/KBArticle#000000.html</knowledgebaseArticleNumberURL>
<installCountdown>60</installCountdown>
<updatePackageFileSize>30</updatePackageFileSize>
<updatePackageBuildDate>Wednesday 14th March, 2018 12:00:00 AM</updatePackageBuildDate>
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,14 @@
<Setting Name="VirusTotalScanURL" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="KnowledgebaseArticleNumber" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="KnowledgebaseArticleNumberURL" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="UpdatePackageDescription" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@
<setting name="VirusTotalScanURL" serializeAs="String">
<value />
</setting>
<setting name="KnowledgebaseArticleNumber" serializeAs="String">
<value />
</setting>
<setting name="KnowledgebaseArticleNumberURL" serializeAs="String">
<value />
</setting>
<setting name="UpdatePackageDescription" serializeAs="String">
<value />
</setting>
</KryptonApplicationUpdater.Settings.XMLFileApplicationUpdaterSettings>
<KryptonApplicationUpdater.Settings.InternalApplicationUpdaterSettings>
<setting name="ApplicationName" serializeAs="String">
Expand Down
Loading

0 comments on commit 11bf518

Please sign in to comment.