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!

johnds
Posts: 5
Joined: Thu Dec 18, 2014 11:31 am

.NET custom action DLL and it's references

Hi there,

I need to use some custom actions in a .NET assembly to perform some extra tasks. My problem is that the assembly I have created relies on other assemblies that I need to reference to make use of their functionality.

Now, in AI, when you create a new Custom Action based on an external assembly, it only gives you the chance to load/select the assembly containing your custom action 'functions'. I have not yet tested this, but I am 100% sure that when the MSI runs and attempts to call my custom actions assembly, it will blow up because the other references are not there?

Secondly, IF i were to include them as part of the actual installation, how can I get AI to make use of them BEFORE they actually get installed onto the local machine?

John.
Snr .net Dev.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: .NET custom action DLL and it's references

Hi John and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

The custom action assemblies are extracted during the installation in the [%TEMP%] folder as temporary files. So, if you want the other references to be in the same folder, you can go in the "Files and folders" page and add them as temporary files using the "Temporary Files" toolbar button.

In this case, those files will be copied on the machine at the beginning of the installation and removed (you can set them not to be removed if you want) when the installation is finished.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”