VB.Net DLL custom action - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

VB.Net DLL custom action

Hi,

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?

Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

What type of custom action you use? Here is a list of custom action types supported by Windows Installer:
http://msdn2.microsoft.com/en-us/library/aa372048.aspx

Try with ".Net Installer Class Action" type of custom action. Let me know how this works.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi Gigi,

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.

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

.Net DLLs are not supported as usual custom actions by Windows Installer (only C or C++ DLLs are supported).

Read more about how to use ".Net Installer Class Action" custom action here:
http://www.advancedinstaller.com/user-g ... ller-class

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tslewis
Posts: 65
Joined: Wed Mar 13, 2013 7:06 am

Re: VB.Net DLL custom action

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,

thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VB.Net DLL custom action

Hello,

Here you can read about ".NET Installer Class action". Also, you can take a look on "Installer Class and Custom Actions" article which could be useful for you.

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.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”