Skip to content

Release v2.15.0.0

Latest

Choose a tag to compare

@oleg-shilo oleg-shilo released this 26 Nov 07:34

What's Changed

  • Fix NET-Core build: link SigningJob.cs after ProjectFileSigner removal by @dand-oss in #1958
  • Enable headless WiX source generation on Linux by @dand-oss in #1959
  • Document headless WiX source generation on Linux by @dand-oss in #1960
  • Fix AppSearch.IniFileValue ignoring the encoding parameter by @AwesomeM4rc in #1962
  • Fix WixTools.PackageDir not picking the expected package version @AwesomeM4rc in #1963

New Contributors

Full Changelog: v2.14.2.0...v2.15.0


Changes Details

  • Fixed AppSearch.IniFileValue ignoring the encoding parameter
  • Document headless WiX source generation on Linux
  • Demonstrate bundle signing in sample
  • Implemented support for using generic signer for signing the bundles.
  • Improved Burn bootstrapper signing and inspection
  • Fixed WixTools.PackageDir not picking the expected package version
  • Enabled headless WiX source generation on Linux
  • Fixed problem with unnecessary waits between file signing steps (e.g. retries).
  • Signing failures are now handeled by WixSharp as errors - abort the build process. Previously it was the top level builder (e.g. msbuild, IDE) who was handling the build errors.
  • Added signing bundle Application assembly and its payloads:
    bundle.SignApplicationFiles = true;
  • Now, signing tool output is hidden by default. Otherwise it's too crowded in the build output. WixSharp still reports what is being signed and the signing result (success/error).
    If preferred seeing the signtool.exe output it can be enabled with:
    Compiler.VerboseSigningOutput = true;
  • Added a binary analyzer utility that allows quick and reliable detection of the signed state of the bundle engine in a given bundle/bootstrapper file. It can be used for quick verification of bundle signing.
    var bundleFile = bundle.Build("MyProductBundleSetup.exe");
    var info = BurnEngineInspector.InspectBundle(bundleFile);
    
    Console.WriteLine($"BundleSigned: {info.BundleSigned}");
    Console.WriteLine($"EngineSigned: {info.EngineSigned}"); 
  • Signing algorithm for bundles is reworked to allow using generic signers. This makes DigitalSignatureBootstrapper practically obsolete even though still working:
    bundle.DigitalSignature = new DigitalSignature 
    {
        PfxFilePath = certificateFile,
        Password = "password123",
        Description = "MyProductBundle"
     };
  • GenericSigner interface is reworked to allow setting teh delegates for:
    • Apply - older interface for signing individual files
    • Sign - newer interface for signing multiple files in a single step
    project.DigitalSignature = new GenericSigner
    (
        apply: fileToSign =>
        {
            // digitally sign your file (a string) here
            return 0;
        }
    );
    // or 
    project.DigitalSignature = new GenericSigner
    (
        sign: filesToSign =>
        {
            // digitally sign your files (a string[]) here
            return 0;
        }
    );
    You need to define only one of the delegates. If another delegate is preferred but not available WixSharp will tunnel the call to the other available delegate.