Skip to content

Commit

Permalink
Release v1.18.1.0
Browse files Browse the repository at this point in the history
* Added full UI for uninstalling from control panel. The feature can be enabled via `project.EnableUninstallFullUI(...)`
* Nsis Bootstrapper
  - Added support for Nsis Bootstrapper compression.
  - Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Issue #1025: Add generated children of TypeLib to element
* Issue #1014: Modify MS Build task to include configuration and platform parameters
* Added support for `WixStandardBootstrapperApplication.HyperlinkSidebarLicense`.
* Issue #1023: Copy File Not working; Fixed misspelled field name
* Introduce logging options for UninstallFullUI feature
* Issue #1005: Request: Arm64 support
* Issue #1001: Fix null reference exception if SDK is located inside the wixlocation…
* Issue #999: Multiple windows services to single .exe
* Issue #995: IgnoreWildCardEmptyDirectories with 1.17.0 causes Wxs generation to never finish with multiple top-level dirs
* Fixed: Respect TargetFileName on OverwriteOnInstall option
  • Loading branch information
oleg.shilo authored and oleg.shilo committed Aug 14, 2021
1 parent 12a5210 commit 33ae7c6
Show file tree
Hide file tree
Showing 15 changed files with 81 additions and 49 deletions.
18 changes: 11 additions & 7 deletions Source/NuGet/WixSharp/WixSharp.WPF.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>WixSharp.WPF</id>
<version>1.18.0.0</version>
<version>1.18.1.0</version>
<title>Wix# (WixSharp) - Binaries</title>
<authors>Oleg Shilo</authors>
<owners>Oleg Shilo</owners>
Expand All @@ -16,24 +16,28 @@ The package contains Wix# binaries only.
In order to use this package you need have WiX Toolset installed.
The package is tested against WIX (Windows Installer Xml) Toolset v3.10 (v3.10.2103.0)</description>
<summary>Wix# (WixSharp) - Binaries</summary>
<releaseNotes>Release v1.18.0.0
<releaseNotes>Release v1.18.1.0

* Added full UI for uninstalling from control panel. The feature can be enabled via `project.EnableUninstallFullUI(...)`
* Added support for Nsis Bootstrapper compression.
Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Nsis Bootstrapper
- Added support for Nsis Bootstrapper compression.
- Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Issue #1025: Add generated children of TypeLib to element
* Issue #1014: Modify MS Build task to include configuration and platform parameters
* Added support for `WixStandardBootstrapperApplication.HyperlinkSidebarLicense`.
* Issue #1023: Copy File Not working; Fixed misspelled field name
* Introduce logging options for UninstallFullUI feature
* Issue #1005: Request: Arm64 support
* Issue #1001: Fix null reference exception if SDK is located inside the wixlocation…
* Issue #999: Multiple windows services to single .exe
* Issue #995: IgnoreWildCardEmptyDirectories with 1.17.0 causes Wxs generation to never finish with multiple top-level dirs
* Addressed U-Test failures for Issue #999 dev
* Respect TargetFileName on OverwriteOnInstall option
* Fixed: Respect TargetFileName on OverwriteOnInstall option
</releaseNotes>
<copyright>Copyright (C) 2008-2021 Oleg Shilo</copyright>
<language>en-AU</language>
<tags>C# scripting msi install setup wix</tags>
<dependencies>
<dependency id="WixSharp.bin" version="1.18.0.0" />
<dependency id="WixSharp.bin" version="1.18.1.0" />
<dependency id="Caliburn.Micro" version="3.2.0" />
</dependencies>
<references>
Expand Down
16 changes: 10 additions & 6 deletions Source/NuGet/WixSharp/WixSharp.bin.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>WixSharp.bin</id>
<version>1.18.0.0</version>
<version>1.18.1.0</version>
<title>Wix# (WixSharp) - Binaries</title>
<authors>Oleg Shilo</authors>
<owners>Oleg Shilo</owners>
Expand All @@ -16,18 +16,22 @@ The package contains Wix# binaries only.
In order to use this package you need have WiX Toolset installed.
The package is tested against WIX (Windows Installer Xml) Toolset v3.10 (v3.10.2103.0)</description>
<summary>Wix# (WixSharp) - Binaries</summary>
<releaseNotes>Release v1.18.0.0
<releaseNotes>Release v1.18.1.0

* Added full UI for uninstalling from control panel. The feature can be enabled via `project.EnableUninstallFullUI(...)`
* Added support for Nsis Bootstrapper compression.
Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Nsis Bootstrapper
- Added support for Nsis Bootstrapper compression.
- Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Issue #1025: Add generated children of TypeLib to element
* Issue #1014: Modify MS Build task to include configuration and platform parameters
* Added support for `WixStandardBootstrapperApplication.HyperlinkSidebarLicense`.
* Issue #1023: Copy File Not working; Fixed misspelled field name
* Introduce logging options for UninstallFullUI feature
* Issue #1005: Request: Arm64 support
* Issue #1001: Fix null reference exception if SDK is located inside the wixlocation…
* Issue #999: Multiple windows services to single .exe
* Issue #995: IgnoreWildCardEmptyDirectories with 1.17.0 causes Wxs generation to never finish with multiple top-level dirs
* Addressed U-Test failures for Issue #999 dev
* Respect TargetFileName on OverwriteOnInstall option
* Fixed: Respect TargetFileName on OverwriteOnInstall option
</releaseNotes>
<copyright>Copyright (C) 2008-2021 Oleg Shilo</copyright>
<language>en-AU</language>
Expand Down
18 changes: 11 additions & 7 deletions Source/NuGet/WixSharp/WixSharp.lab.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>WixSharp.Lab</id>
<version>1.18.0.0</version>
<version>1.18.1.0</version>
<title>Wix# (WixSharp) - Experimantal features</title>
<authors>Oleg Shilo</authors>
<owners>Oleg Shilo</owners>
Expand All @@ -14,18 +14,22 @@
The package contains the sample code for building a simple MSI with the CLR WinForm dialog inserted into UI sequence between InsallDirDlg and VerifyReadyDlg native MSI dialogs. In order to use this package you need have WiX Toolset installed.
The package is tested against WIX (Windows Installer Xml) Toolset v3.10 (v3.10.2103.0)</description>
<summary>Wix# binaries containing experimental features (e.g. native WiX UI support).</summary>
<releaseNotes>Release v1.18.0.0
<releaseNotes>Release v1.18.1.0

* Added full UI for uninstalling from control panel. The feature can be enabled via `project.EnableUninstallFullUI(...)`
* Added support for Nsis Bootstrapper compression.
Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Nsis Bootstrapper
- Added support for Nsis Bootstrapper compression.
- Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Issue #1025: Add generated children of TypeLib to element
* Issue #1014: Modify MS Build task to include configuration and platform parameters
* Added support for `WixStandardBootstrapperApplication.HyperlinkSidebarLicense`.
* Issue #1023: Copy File Not working; Fixed misspelled field name
* Introduce logging options for UninstallFullUI feature
* Issue #1005: Request: Arm64 support
* Issue #1001: Fix null reference exception if SDK is located inside the wixlocation…
* Issue #999: Multiple windows services to single .exe
* Issue #995: IgnoreWildCardEmptyDirectories with 1.17.0 causes Wxs generation to never finish with multiple top-level dirs
* Addressed U-Test failures for Issue #999 dev
* Respect TargetFileName on OverwriteOnInstall option
* Fixed: Respect TargetFileName on OverwriteOnInstall option
</releaseNotes>
<copyright>Copyright (C) 2008-2021 Oleg Shilo</copyright>
<language>en-AU</language>
Expand All @@ -35,7 +39,7 @@ The package is tested against WIX (Windows Installer Xml) Toolset v3.10 (v3.10.2
<frameworkAssembly assemblyName="System.Drawing" targetFramework="" />
</frameworkAssemblies>
<dependencies>
<dependency id="WixSharp.bin" version="1.18.0.0" />
<dependency id="WixSharp.bin" version="1.18.1.0" />
</dependencies>
</metadata>
<files>
Expand Down
18 changes: 11 additions & 7 deletions Source/NuGet/WixSharp/WixSharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>WixSharp</id>
<version>1.18.0.0</version>
<version>1.18.1.0</version>
<title>Wix# (WixSharp) - managed interface for WiX</title>
<authors>Oleg Shilo</authors>
<owners>Oleg Shilo</owners>
Expand All @@ -18,24 +18,28 @@ If you need only Wix# binaries you may want to use WixSharp.bin package instead.
In order to use this package you need have WiX Toolset installed.
The package is tested against WIX (Windows Installer Xml) Toolset v3.10 (v3.10.2103.0)</description>
<summary>Wix# (WixSharp) - Binaries</summary>
<releaseNotes>Release v1.18.0.0
<releaseNotes>Release v1.18.1.0

* Added full UI for uninstalling from control panel. The feature can be enabled via `project.EnableUninstallFullUI(...)`
* Added support for Nsis Bootstrapper compression.
Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Nsis Bootstrapper
- Added support for Nsis Bootstrapper compression.
- Added sample `BuildScriptWithCompressor` (Samples/Bootstrapper/NsisBootstrapper/setup.cs)
* Issue #1025: Add generated children of TypeLib to element
* Issue #1014: Modify MS Build task to include configuration and platform parameters
* Added support for `WixStandardBootstrapperApplication.HyperlinkSidebarLicense`.
* Issue #1023: Copy File Not working; Fixed misspelled field name
* Introduce logging options for UninstallFullUI feature
* Issue #1005: Request: Arm64 support
* Issue #1001: Fix null reference exception if SDK is located inside the wixlocation…
* Issue #999: Multiple windows services to single .exe
* Issue #995: IgnoreWildCardEmptyDirectories with 1.17.0 causes Wxs generation to never finish with multiple top-level dirs
* Addressed U-Test failures for Issue #999 dev
* Respect TargetFileName on OverwriteOnInstall option
* Fixed: Respect TargetFileName on OverwriteOnInstall option
</releaseNotes>
<copyright>Copyright (C) 2008-2021 Oleg Shilo</copyright>
<language>en-AU</language>
<tags>C# scripting msi install setup wix</tags>
<dependencies>
<dependency id="WixSharp.bin" version="1.18.0.0" />
<dependency id="WixSharp.bin" version="1.18.1.0" />
</dependencies>
</metadata>
<files>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ static public void Main()

bootstrapper.Application.LicensePath = "licence.html"; //HyperlinkLicense app with embedded license file
bootstrapper.Application.LicensePath = "licence.rtf"; //RtfLicense app with embedded license file
// bootstrapper.Application.LicensePath = "http://opensource.org/licenses/MIT"; //HyperlinkLicense app with online license file
// bootstrapper.Application.LicensePath = null; //HyperlinkLicense app with no license
// bootstrapper.Application.LicensePath = "http://opensource.org/licenses/MIT"; //HyperlinkLicense app with online license file
// bootstrapper.Application.LicensePath = null; //HyperlinkLicense app with no license

// if you want to use `WixStandardBootstrapperApplication.HyperlinkSidebarLicense`
// you need to clear bootstrapper.Application.LicensePath and uncomment the next line
// bootstrapper.Application.LogoSideFile = "logo.png";

bootstrapper.Application.AttributesDefinition = "ShowVersion=yes; ShowFilesInUse=yes";
bootstrapper.Include(WixExtension.Util);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,16 @@ static void ManagedUIShell_OnCurrentDialogChanged(IManagedDialog obj)

static void CheckCompatibility(SetupEventArgs e)
{
// MsiRuntime runtime = e.ManagedUI.Shell.MsiRuntime();
// foreach (string text in runtime.UIText.Keys.ToArray())
// runtime.UIText[text] = runtime.UIText[text].ToUpper();
//MessageBox.Show("Hello World! (CLR: v" + Environment.Version + ")", "Embedded Managed UI (" + ((IntPtr.Size == 8) ? "x64" : "x86") + ")");

if (e.IsInstalling)
{
var conflictingProductCode = "{1D6432B4-E24D-405E-A4AB-D7E6D088C111}";

if (AppSearch.IsProductInstalled(conflictingProductCode))
{
string msg = string.Format("Installed '{0}' is incompatible with this product.\n" +
"Setup will be aborted.",
AppSearch.GetProductName(conflictingProductCode) ?? conflictingProductCode);
string msg = "Installed '{0}' is incompatible with this product.\n" +
"Setup will be aborted."
.FormatWith(AppSearch.GetProductName(conflictingProductCode) ?? conflictingProductCode);

MessageBox.Show(msg, "Setup");
e.Result = ActionResult.UserExit;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using WixSharp;
using WixSharp.CommonTasks;

public class Script
public static class Script
{
static public void Main()
{
Expand Down Expand Up @@ -73,12 +73,26 @@ static public void Main()
Tasks.StartService("some_service", throwOnError: false);
};

// project.UnelevateAfterInstallEvent(); // just for demo purposes

project.GUID = new Guid("6f330b47-2577-43ad-9095-1861ba25889b");
// project.PreserveTempFiles = true;
project.PreserveTempFiles = true;

Compiler.BuildMsi(project);
}

static ManagedProject UnelevateAfterInstallEvent(this ManagedProject project)
{
project.WixSourceGenerated +=
doc =>
{
doc.FindAll("CustomAction")
.Single(x => x.HasAttribute("Id", "WixSharp_AfterInstall_Action"))
.SetAttribute("Execute", "immediate");
};
return project;
}

static void Project_UIInitialized(SetupEventArgs e)
{
// just an example of restarting the setup UI elevated. Old fashioned but... convenient and reliable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ static void SimpleScenario2()

new ExeFileShortcut("Uninstall My Product", "[System64Folder]msiexec.exe", "/x [ProductCode]")));

project.PreserveTempFiles = true;
project.GUID = new Guid("6f330b47-2577-43ad-9095-1561ba25889b");

project.BuildMsi();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static public void Main()
RebootMessage = "Failure actions do not specify reboot",
DependsOn = new[]
{
new ServiceDependency("Dnscache"),
new ServiceDependency("[Dnscache]"),
new ServiceDependency("Dhcp"),
},
}),
Expand Down
Binary file modified Source/src/WixSharp.Samples/WixSharp.Lab.dll
Binary file not shown.
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.
15 changes: 8 additions & 7 deletions Source/src/WixSharp.Samples/WixSharp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3679,11 +3679,12 @@
<param name="context"></param>
</member>
<member name="T:WixSharp.CopyFile">
<summary>

</summary>
<seealso cref="T:WixSharp.WixEntity" />
<seealso cref="T:WixSharp.IGenericEntity" />
<summary>
This class implements 'CopyFile' WiX element.
<para>This feature has been contributed as the result of "CopyFile element not implemented #801"</para>
</summary>
<seealso cref="T:WixSharp.WixEntity" />
<seealso cref="T:WixSharp.IGenericEntity" />
</member>
<member name="M:WixSharp.CopyFile.#ctor(WixSharp.Id)">
<summary>
Expand Down Expand Up @@ -3736,9 +3737,9 @@
Set this value to a property that will have a value that resolves to the full path of the destination directory. The property does not have to exist in the installer database at creation time; it could be created at installation time by a custom action, on the command line, etc. This attribute cannot be specified in conjunction with DestinationDirectory.
</summary>
</member>
<member name="F:WixSharp.CopyFile.Field">
<member name="F:WixSharp.CopyFile.FileId">
<summary>
The field This attribute cannot be specified if the element is nested under a File element. Set this attribute's value to the identifier of a file from a different component to copy it based on the install state of the parent component.
This attribute cannot be specified if the element is nested under a File element. Set this attribute's value to the identifier of a file from a different component to copy it based on the install state of the parent component.
</summary>
</member>
<member name="F:WixSharp.CopyFile.SourceDirectory">
Expand Down
4 changes: 2 additions & 2 deletions Source/src/WixSharp/Properties/AssemblyInfo.version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.18.0.0")]
[assembly: AssemblyFileVersion("1.18.0.0")]
[assembly: AssemblyVersion("1.18.1.0")]
[assembly: AssemblyFileVersion("1.18.1.0")]

0 comments on commit 33ae7c6

Please sign in to comment.