Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Custom action calling into .NET 4 assembly

$
0
0
The error message indicates that the target system doesn't have .NET 4.5+ available. You cannot build a custom action that requires .NET4.5+ and run it on the system where this runtime is unavailable. You have here a typical 'chicken-egg' problem, which is quite common fro deployment solutions. For example you cannot run MSI setup on the PC that doesn't have MSI services installed.

The most common way of solving this problem is bootstrapping. Thus you can bundle your product with the required dependency package and schedule it to be deployed before the main product. This is what Burn (WiX bootstrapper does). The samples are in the Wix# distro. And WiX bootstrapper is so clever that it can even bootstrapp the required .NET version before displaying its own GUI. That very GUI that may be implemented as a managed app (Custom BA).

However sometimes it's just enough to build your setup with the minimal dependencies. For example building against lowest possible version of .NET (the default version of .NET that comes with your OS). Of course it's not so flexible as bootstrapper but sometimes it's just more practical. But if it's not an option for you then bootstrapper is the way to go.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>