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!

harmoniker
Posts: 4
Joined: Tue Sep 23, 2014 3:52 am

Reading Registry Value Via Custom Action, AFTER AppSearch Sequence

All:

I, like many other authors before me, am struggling with building in an absolutely seamless way to install SQL Server Express.

I have authored a child MSI that can install the necessary .NET 3.51 Windows Feature required by SQL Express - that works just fine.

This child MSI also posts the user's response to a custom dialog question as to whether or not they want to install SQL Server Express into the registry.

The above MSI is then called as a Pre-Install pre-requisite from my master installer.

Later, SQL Server Express can be launched via a custom action (which you've already provided sample code for - thank you).

My problem is that I need to read the registry key containing the user's response into an MSI property AFTER that child MSI pre-install prerequisite completes, and use that as a condition for installing/not installing SQL.

If I try and do a simple registry search, that will take place (the AppSearch sequence) BEFORE the pre-install prerequisites. So it does me no good.

Short of authoring a custom native .DLL to read my registry value into yet a Custom Action, how can I accomplish a registry search AFTER all of the pre-install prerequisites have finished?? And if a custom .DLL call is the only way to do it, do you have sample C++ code with Reg function calls to show how to query a DWORD value and store it into a MSI property?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reading Registry Value Via Custom Action, AFTER AppSearch Sequence

Hello,

Please note that the Pre-install prerequisites are installed by the EXE bootstrapper before your MSI is launched.

So, the AppSearch action will be executed after the pre-install prerequisite. Can you please review your scenario?

If you want to integrate custom action in the installation package, please take a look on the How to integrate and debug custom actions? article with related information for hints and guidance.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”