.NET Custom Action DLL Problem - 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!

kalex
Posts: 4
Joined: Thu Feb 17, 2011 6:02 pm

.NET Custom Action DLL Problem

Hi,

i have defined a custom Commit Action using ".NET Installer Class Action" with following Options:

- Synchronous execution, check return code
- Commit with no impersonation
- Always Execute
- one custom action parameter (Action Data).

When running the installer everything goes fine untill the Commit is initiated. Then i get a dialog box (see attachment)
problem.jpg
problem.jpg (16.49 KiB) Viewed 3311 times
It seems, that InstallUtil is executed with wrong command Line-Options.

how can this be solved?

kind regards,
kalex
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: .NET Custom Action DLL Problem

Hi Kalex and welcome to the Advanced Installer Forums,

It seems that something may be wrong with your custom action. Here is a MSDN link that underlines the basic signature of an installer class.
You should try to debug/run the custom action, to make sure it's doing what you are expecting it to do. For debugging purposes you can follow this thread.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kalex
Posts: 4
Joined: Thu Feb 17, 2011 6:02 pm

Re: .NET Custom Action DLL Problem

Hi back,

thank you!

I solved the problem in the meantime by wrapping the CustomAction dll into an EXE, that is
executed from the Advanced Installer trough a normal "Launch File or Open URL" action
using the same command-line parameters, the original dll was called. All is going well so far.

May be we can solve the original Problem anyway..

The Custom action has the right signature. it is derived from "System.Configuration.Install.Installer" and is
correctly tagged with "RunInstaller(true)". I imported the initial project from a VisualStudio 2008 Setup
project and the custom action was running correctly in the MSI generated by the VisualStudio Setup Project.

The problem here is, that InstallUtil.exe seems to be called with wrong arguments from the AdvancedInstaller
CustomAction-Wrapper. When i start InstallUtil.exe from command line, i get the same output as the one
shown in the DialogBox of my initial Post.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: .NET Custom Action DLL Problem

Hi Kalex,

Can you please send us a verbose log of the installation manifesting the issue to support at advancedinstaller dot com so we can investigate it?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”