I created a small VB.Net DLL which I want to use as a custom action. However, when I add the custom action my MSI fails with the message "Your Application Setup ended prematurely because of an error". Am I missing something?
I was using an attached custom action, selected my DLL and entered the name of the function.
The ".Net Installer Class Action" also fails, in the application event log I get following message:
"Product: Your Application -- 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 dotNetCustAct.dll, entry: TEST1, library: C:\WINDOWS\Installer\MSI161.tmp"
Is there anything special I need to add to my DLL file? Maybe you could provide an example how a working VB.NET DLL needs to look.
The link no longer works. Please can you post a VB.NET custom action. In particular I want to browse to an XML file after installing my assembly and change some path settings in that file,
Also, if you want to run a .NET custom action you can create a DTF custom action too. Please take a look on our "Create fully fledged C# custom actions" article.
FOLLOW US
Get the latest news in Application Packaging