Using custom tasks

May 8, 2015 at 5:17 PM
Hello.

First off - your project saved me hours of work - thank you!

I would like to use WiX extension from within Wix#. As an example lets take this one: https://github.com/flcdrg/PowerShellWixExtension.

How can that be achieved?
May 9, 2015 at 1:42 PM
Edited May 9, 2015 at 1:46 PM
project.WixExtensions.Add(...);
The above code should do the trick.

Though if you just want to run some script on the target OS then with Wix# you can execute a managed action or even an external C# file. This represents opportunities similar but arguably even greater than PowerShell.