Calling a DLL from a custom dialog - 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!

DYMO
Posts: 1
Joined: Wed Sep 27, 2006 7:12 pm

Calling a DLL from a custom dialog

We are currently evaluating Advanced Installer via your trial version and I have a question about calling a DLL from a custom dialog. We'd like to display a dialog box that instructs the user to plug in a device. We've written a function in a DLL that returns a certain value when the device has been plugged into an available USB port. We'd like this dialog to load with the 'Next' control disabled and call our custom function in a loop until it returns a certain value indicating that the device has been plugged in. At that time the 'Next' control should be enabled. Can you tell me if this type of functionality is possible and if so is there a sample I can look it that shows how to do it?

Thanks in advance for any help you can provide.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Yes, you can do this. Here is my suggestion on how to do it:

Under the "next" control from the "Welcome" dialog create a new "SpawnDialog" and "DoAction" control events. For the "DoAction" event select your CA dll (add this CA dll in the "Custom Action" page under "UI Custom Actions").

In your custom action dll you need to set a property. And use this property as control condition for the "next" control of the dialog that will be spawned (when the property is set enable the control).

Hope this helps. Please let me know your is something that you don't understand or you need more details.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”