Skip to content

Commit

Permalink
Release v1.4.1.0
Browse files Browse the repository at this point in the history
* Issues #31: Enhancement: add session.IsUpgrade / setupEventArgs.IsUpgrading
* Added new API `AppSearch.GetProductVersionFromUpgradeCode`
  • Loading branch information
oleg-shilo committed Mar 10, 2017
1 parent b63e80f commit 2cb5c84
Show file tree
Hide file tree
Showing 8 changed files with 142 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ static public void Main(string[] args)
new FirewallException("notepad") //global exception
{
RemoteAddress = "127.0.0.1, 127.0.0.2, 127.0.0.3".Split(','),
Port="8080",
//Program = "notepad.exe"
Port="8080",
//Program = "notepad.exe"
},
new Dir(@"%ProgramFiles%\My Company\My Product",
new File(@"Files\Bin\MyApp.exe",
Expand Down
Binary file modified Source/src/WixSharp.Samples/WixSharp.Msi.dll
Binary file not shown.
Binary file modified Source/src/WixSharp.Samples/WixSharp.UI.dll
Binary file not shown.
Binary file modified Source/src/WixSharp.Samples/WixSharp.dll
Binary file not shown.
205 changes: 121 additions & 84 deletions Source/src/WixSharp.Samples/WixSharp.xml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Source/src/WixSharp/AppSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ static public string[] GetProducts()
return result.ToArray();
}

/// <summary>
/// Gets the related products (products with the same <c>UpgradeCode</c>).
/// </summary>
/// <param name="upgradeCode">The upgrade code.</param>
/// <returns></returns>
static public string[] GetRelatedProducts(string upgradeCode)
{
var result = new List<string>();
Expand Down
13 changes: 12 additions & 1 deletion Source/src/WixSharp/ManagedProject/SetupEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,22 @@ public string UpgradingProductCode
get { return Data["UPGRADINGPRODUCTCODE"]; }
}

/// <summary>
/// Gets the product code.
/// </summary>
/// <value>
/// The product code.
/// </value>
public string ProductCode
{
get { return Data["ProductCode"]; }
}

/// <summary>
/// Gets the upgrade code.
/// </summary>
/// <value>
/// The upgrade code.
/// </value>
public string UpgradeCode
{
get { return Data["UpgradeCode"]; }
Expand Down
4 changes: 2 additions & 2 deletions Source/src/WixSharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]
[assembly: AssemblyVersion("1.4.2.0")]
[assembly: AssemblyFileVersion("1.4.2.0")]

0 comments on commit 2cb5c84

Please sign in to comment.