wixsharp

Framework for building a complete MSI or WiX source code by using script files written with C# syntax.

MIT License

Stars
1.1K
Committers
52

Bot releases are visible (Hide)

wixsharp - WiX3: Release v1.23.0.0-PRE

Published by oleg-shilo 11 months ago

  • NuGet packages are updated to .NET Framework v4.6.2; v4.5.1 assemblies are also included in the package
  • Issue #1366: What is the purpose of StartArguments in the .targets file (see linked code)
  • Issue #1358: XML exception when run CustomMSIDialog sample
  • Issue #1328: Strange focus on the taskbar
  • Issue #1326: Library erased after update
  • Added Tasks.UnelevateAfterInstallEvent
  • Added Session.PersistData for securely persisting data between sessions; Triggered by Issue #1029.
  • Updated MajorUpgrade sample
wixsharp - Release v2.0.2.0

Published by oleg-shilo 12 months ago

  • Added Compiler.VerboseOutput
wixsharp - WiX4: Release v2.0.1.0

Published by oleg-shilo about 1 year ago

  • Issue #1329: the sample of Install on x64 generate a msi which installs components to Program Files (x86)
  • Ported some method extensions from the WiX3 codebase.
  • Added project.UnelevateAfterInstallEvent() API
  • WixSharp binaries re-targeted for target runtime v4.7.2
  • Added Session.PersistData for securely persisting data between sessions; Triggered by Issue #1029.
wixsharp - Release v2.0.0.0

Published by oleg-shilo about 1 year ago

WixSharp release for WiX4.

System Requirements:

  • .NET runtime v7.0 or higher must be installed.
  • WiX4 toolset: dotnet tool install --global wix

Limitations:

WixSharp just drops these features because they have no direct support in WiX4:

  • Package.InstallPrivileges
  • Publish.Condition
  • Package.Languages no longer exists
  • WixSharp.DriverInstaller is based on now deprecated element. WiX4 offers no guidance on how to deal with it.
  • <CustomAction Id="VBScript" Script="vbscript" ...>
  • <Package Platform="x64" is illegal but not even picked by wix convert; doc says Component.Bitness may have the value default which means "will be installed using the same bitness as the package". But the package element does not have bitness attribute. WixSharp maintains Project.Platform property but does not convert it in the Package.Platform while still cascades it to the Component.Bitness

UPDATE: WixSharp templates for WiX4 have been published on marketplace.

Keeping the section below just in case if some users experience the problems with Visual Studio projects.

Until VS templates are released use this simple technique for creating the projects

Any WixSharp project except WPF UI:

  1. In VS create "Console App" project targeting .NET Framework v4.7.2 .
    Note: ensure you did not accidentally use "Console App (.NET Framework)"
  2. Add the required nuget package WixSharp-wix4.2.0.0.0 or WixSharp-wix4.bin.2.0.0.0
  3. Setup post-build event command:
    cd .\
    set ide=true
    "$(TargetPath)"
    
    image

This is the sample project with similar settings.

WixSharp project for WPF UI

  1. Copy this sample project
  2. Add nuget package WixSharp-wix4.WPF2.0.0.0
  3. Remove reference to any WixSharp project (it is a leftover from the sample referencing).

Consult WixSarp (WiX4) code samples as you go.

wixsharp - Release v1.22.1.0

Published by oleg-shilo about 1 year ago

  • Added Support StoreType.sha1Hash in DigitalSignatureBootstrapper
  • Issue #1317: Bootstrapper bundle has bugs on wxs files generation.
  • Issue #1310: Problem during dynamic localization
wixsharp - Release v1.22.0

Published by oleg-shilo over 1 year ago

  • Updated WiX binaries to v3.14.0.6526
  • Updated samples to reflect WiX v3.14.0.6526
  • Updated WixSharp.wix.bin.nuspec
  • Issue #1297: wixsharp:WpfDialog auto scaling based on screen resolu…
  • Extra u-tests for #270
  • Issue #1300: Weird space sin FeaturesDialog title
  • Issue #1301: Make more elements translatable
  • RC preparation
  • Issues #1304: Improve the usability of Project.WildCardDedup
wixsharp - Release v1.20.4.0

Published by oleg-shilo over 1 year ago

  • Issue #270: Deduplication of files added with wildcards
wixsharp - Release Candidate v1.21.0.0-pre

Published by oleg-shilo over 1 year ago

All porting effort is tracked via #1281

Changes

  • Ported to WiX4

The packages are published on nuget.org

  • WixSharp-wix4.1.21.0-pre.nupkg
  • WixSharp-wix4.bin.1.21.0-pre.nupkg
  • WixSharp-wix4.WPF.1.21.0-pre.nupkg

Limitations:

  • Rollback
    WiX4 defect: cannot find WixFailWhenDeferred the Util extension)
  • Driver
    WiX4 defect: cannot find CustomAction:MsiProcessDrivers the Difxapp extension
  • ASP.NETApp
    WiX4 defect: cannot find WebVirtualDir the Iis extension
  • SqlDatabase
    WiX4: no porting guidance for Feature.Condition
  • FeatureConditions
    WiX4: no porting guidance for Feature.Condition
  • Port Managed BA (currently impossible; until WiX provides a tech solution)
wixsharp - Release v1.20.3.0

Published by oleg-shilo almost 2 years ago

  • Issue #1244: The directory Id generated can be too long
  • Issue #1223: Non LegacyDummyDirAlgorithm creates C:\ProgramFilesFolder empty folder
  • Issue #1220: ElevatedManagedAction issue
  • Feature #1204: Feature - RegisterCom class to ease the registration of COM files
  • Issue #1203: SilentBootstrapperApplication
  • Issue #182 (extended solution): RegistrySearch has "Win64=no" when building x64 installers
  • Added Self-executable_Msi sample
  • Added WixBootstrapper_EmbeddedUI to demonstrate how to show managed UI if the bundled MSI
  • Added sample for customization of the stock Burn UI. Triggered by #1219
  • Added sample for "Issue #1218: Dynamic custom UI sequence"
  • Resurrected setting user input from BA UI and passing it to the msi. RegistrySearch input is also retained.
  • Added validation for Issue #1075: [FEAT] Add error if LaunchApplicationFromExitDialog using in common Project error.
  • Fixed problem with RegKey being placed in the x86 root XML dir for the x64 project
wixsharp - Release v1.20.2.0

Published by oleg-shilo about 2 years ago

  • PR #1197: Fix BuildMsiCmd generating incorrect custom action dll
  • Issue #1178: WelcomeDialog doesn't show the title.
  • Issue #1170: Generate only a small Installer.exe file to binary (enhancement)
  • Issue #1171: RegFileImporter does not support hex(b): REG_QWORD Partial fix as WiX still does not support REG_QWORD===integer64
wixsharp - Release v1.20.1.0

Published by oleg-shilo over 2 years ago

  • Issue #1162: WPF installDir dialog is ignoring selectedfolder
  • Added CommonTasks.RegisterComAssembly to register COM servers.
  • Issue #1132: Project.ResolveWildCards(ignoreEmptyDirectories: true) removes Start Menu shortcut
  • Issue #118: Logging
wixsharp - Release v1.20.0.0

Published by oleg-shilo over 2 years ago

Implemented custom complete WPF UI.

You can use either stock dialogs:

project.ManagedUI = ManagedUI.DefaultWpf;

Or you can supply your own. This is the sample


Changes:

  • Added WPF stock dialogs for Custom UI (WixSharp.Ui.WPF assembly)
  • Added test case for #1114
  • Issue #1087: Intermittent error
  • "WixSharp Project Templates" extension is ported to VS2022
  • Issue #1096: Setting RegistrySearch Id causes infinite loop
wixsharp - Release v1.19.1.0-pre

Published by oleg-shilo almost 3 years ago

  • Issue #1087: Intermittent error
wixsharp - Release v1.19.0.0

Published by oleg-shilo almost 3 years ago

  • Issue #1062: Potential problem with ServiceConfig
  • Removed extra spaces in the FeaturesDialog title
  • Added the hash of a directory name to the end of the directory Id.
  • Changed to replace the non-legal characters in Ids to their character code.
  • Add .gitattributes file and normalize line endings #1040
  • Merge pull request #1022: Updated namespace: using System.Windows.Forms;
wixsharp - Release v1.18.3.0-pre

Published by oleg-shilo about 3 years ago

  • Issue #1034: Implementing ProgressDialog with WPF in a ManagedUI
wixsharp - Release v1.18.2.0-pre

Published by oleg-shilo about 3 years ago

Release v1.18.2.0

  • Add missing Version element to ComRegistration (Class element) and add extra validation
  • Fix COM registration output
wixsharp - Release v1.18.1.0

Published by oleg-shilo about 3 years ago

  • 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
wixsharp - Release v1.18.0.0

Published by oleg-shilo over 3 years ago

  • 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)
  • 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
wixsharp - Release v1.17.0.0

Published by oleg-shilo over 3 years ago

  • Added support for WPF custom dialogs.
  • Issue #982: MSP Patch Packages and upgrading
  • Added ManagedWpfDialog sample based on Caliburn.Micro
  • Issue #986: WixBinLocator doesn't find WiX if installed with scoop
    Fixed the problem of finding the WiX bin folder location after the nuget package path was redirected with NUGET_PACKAGES
wixsharp - Release v1.16.2.0

Published by oleg-shilo over 3 years ago

  • Issue #971: Unable to build win latest nuget on net45
  • Downgraded target runtime to v4.5.1. To improve compatibility