83930

WixUIExtension.dll could not be loaded

Question:

I'm trying to make a wix installer. for a web application.

the following is my wsx v3.11 File

<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="Guid" Name="TestInstaller" Language="1033" Version="1.0.0.0" Manufacturer="CompanyName" UpgradeCode="Guid1"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" /> <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> <MediaTemplate EmbedCab="yes" /> <PropertyRef Id="WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED"/> <Condition Message='This setup requires the .NET Framework 4.7 client profile installed.'> <![CDATA[Installed OR WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED]]> </Condition> <Feature Id="Complete" Title="TestInstaller" Description="TestInstaller" Level="1" ConfigurableDirectory='INSTALLFOLDER'> <ComponentGroupRef Id="ProductComponents" /> <ComponentGroupRef Id="ProductBinComponents" /> </Feature> <UIRef Id="WixUI_Mondo" /> <UIRef Id="WixUI_ErrorProgressText" /> </Product> <Fragment> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="INSTALLFOLDER" Name="Test Installer" > <Directory Id="INSTALLBINFOLDER" Name="bin"> </Directory> </Directory> </Directory> </Fragment> <Fragment> <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> <Component Id="ProductComponent" Win64="yes" Guid="*"> <File Source="C:\Temp\Publish\Web.config" /> <File Source="C:\Temp\Publish\NLog.config"/> <File Source="C:\Temp\Publish\Global.asax"/> </Component> </ComponentGroup> <ComponentGroup Id="ProductBinComponents" Directory="INSTALLBINFOLDER"> <Component Id="ProductBinComponent" Win64="yes" Guid="*"> <File Source="C:\Temp\Publish\bin\Antlr3.Runtime.dll"/> <File Source="C:\Temp\Publish\bin\Antlr3.Runtime.pdb"/> </Component> </ComponentGroup> </Fragment> </Wix>

my problem here is that I don't know what this error message means and by extension have no clue how to fix it.

<blockquote>

Either 'Microsoft.Tools.WindowsInstallerXml.AssemblyDefaultWixExtensionAttribute' was not defined in the assembly or the type defined in extension '..........\Program Files (x86)\WiX Toolset v3.11\bin\WixUIExtension.dll' could not be loaded.

</blockquote>

Answer1:

<strong><em>1. RTF License File</em></strong>: First make sure you have created your own RTF license file (using WordPad or similar) and then specify to use this RTF file in your WiX source like this:

<pre class="lang-xml prettyprint-override"><!-- Shown for context (one of several possible dialog sets): --> <UIRef Id="WixUI_Mondo" /> <!-- The crucial variable that must be defined (for this dialog set): --> <WixVariable Id="WixUILicenseRtf" Value="TestLicenseAgreement.rtf" /> <blockquote>

For more context and details, please <a href="https://stackoverflow.com/a/47972615/129130" rel="nofollow"><strong>see this example of what minimal tweaks are needed to a fresh WiX project to get it to compile</strong></a> (see inline comments in WiX markup towards bottom).

</blockquote> <hr />

<strong><em>2. Wix.dll</em></strong>: It might be that you have included a reference directly to Wix.dll in addition to WixUIExtension and WixNtFxExtension - both of which you need to keep included.

<blockquote>

So in other words: <strong>remove the project reference to Wix.dll</strong> and try to recompile.

</blockquote>

If that does not work, remove all references and re-add only WixUIExtension and WixNtFxExtension.

<hr />

<strong><em>Some Suggestions & Links</em></strong>:

<ul><li>Similar issue: <a href="https://stackoverflow.com/questions/18717073/where-do-i-find-microsoft-tools-windowsinstallerxml-dll" rel="nofollow">Where do I find Microsoft.Tools.WindowsInstallerXml.dll?</a></li> <li>Maybe use a different source path than a temp directory.</li> <li>Maybe exclude the <strong>*.pdb</strong> file from installation, unless you need it for debugging.</li> <li><a href="https://stackoverflow.com/questions/1405100/change-my-component-guid-in-wix/1422121#1422121" rel="nofollow">Use one file per component</a>. IMHO this prevents all kinds of problems.</li> <li>Strip your GUIDs from WiX sources before posting them - or they could be copy / pasted. Not good at all.</li> </ul>

Recommend

  • Wix Custom Action Implementation for Writing Installfolder in text
  • Implementing an abstract function with access types in Ada
  • update record in database using jdatabase
  • Double dispatch in Java example
  • change search magnifying glass to UIActivityIndicatorView
  • How to display special characters in SQL server 2008?
  • Magento get URL before current
  • How to use function wrapper in mustache.php?
  • Prevent Tomcat from caching request during starup
  • Clear fused location provider's location for testing
  • as3-flash: any way to access all the instances placed in different frames from document class?
  • Do I need to seed any random number generator before using EVP_PKEY_keygen of OpenSSL?
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • How do I signal completion of my dataflow?
  • How do I configure context broker accept post requests from my remote sensor?
  • How to use JavaScript to determine whether a file exists in a directory?
  • How can the INSERT … ON CONFLICT (id) DO UPDATE… syntax be used with a sequence ID?
  • Get history of file changes from TFS to implement custom “blame”-behaviour of exceptions
  • Create DicomImage from scratch using Dcmtk
  • Installed module is empty
  • How to get Eclipse Oxygen to run on Java 9
  • QLPreviewController hide print button in ios6
  • Abort upload large uploads after reading headers
  • OpenGL 3.3 on Mac OSX El Capitan with LWJGL
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Control modification in presentation layer
  • Display issues when we change from one jquery mobile page to another in firefox
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • Uncaught Error: Could not find module `ember-load-initializers`
  • What is Eclipse's Declaration View used for?
  • Can Jackson SerializationFeature be overridden per field or class?
  • Can I make an Android app that runs a web view in Chrome 39?
  • Updated Ionic CLI but shows previous version (Windows)
  • Redux, normalised entities and lodash merge
  • To display the title for the current loaction in map in iphone
  • Android Studio and gradle
  • trying to dynamically update Highchart column chart but series undefined
  • how does django model after text[] in postgresql [duplicate]
  • How to get NHibernate ISession to cache entity not retrieved by primary key