Managed Custom Action (Wix) Error

I had to write a few custom actions for a wix installer. I didn’t have any experience with using managed custom actions in wix so I started with a good article about this.

I implemented all the steps described in the article and ensured that everything is ok but I was still getting the error: “InstallUtilLib.dll: Unknown error.”

CAError

After some investigation (tests and internet search) I understood that you have to specify the supported .net framework in the configuration file in case you have installed more than one framework:

<?xml version=”1.0″ encoding=”utf-8″ ?>
<configuration>
 <startup>
  <supportedRuntime version=”v2.0.50727″/>
 </startup>
</configuration>

2 comments to Managed Custom Action (Wix) Error

  • Is there a link missing from this post to the article you mention? I’m looking to do some work with Managed Custom Actions, and would be interested to read the article you found so useful.

  • daniel.pavelescu

    Alastair,

    Thanks for spotting it out. I’ve updated it to include the link as well.

    Cheers,
    Daniel

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Spam Protection by WP-SpamFree