Note that there are some explanatory texts on larger screens.

plurals
  1. POC# custom action in Wix
    text
    copied!<p>When my application is uninstalled, the server needs to be notified so that it can free up the license key assigned to the client. This is done via a web service call. </p> <p>I created a C# custom action that does this. The problem is, the uninstaller is quitting saying that it couldnt find a dll. </p> <p>The error log for the msi contains the following error:</p> <blockquote> <p>Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action ReadLicenseKeyFromFile, entry: ReadLicenseKey, library: C:\Windows\Installer\MSI4F42.tmp</p> </blockquote> <p>I have the function ReadLicenseKey marked as a custom action. The custom action is named ReadLicenseKeyFromFile. </p> <pre><code>&lt;Custom Action="ReadLicenseKeyFromFile" After="InstallInitialize"&gt; REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE &lt;/Custom&gt; &lt;CustomAction Id="ReadLicenseKeyFromFile" BinaryKey="UnInstallCA.CA.dll" DllEntry="ReadLicenseKey" Execute="immediate" Return="check" /&gt; &lt;Binary Id="UnInstallCA.CA.dll" SourceFile="$(var.UnInstallCA.TargetDir)UnInstallCA.CA.dll" /&gt; </code></pre> <p>The custom action project is outputting the .CA.dll file. I have tried installing the file as a part of the setup, manually copy pasted the file, done nothing to the file... basically tried all possible combinations.</p> <p>There must be something that I am missing, so please help.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload