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?
FOLLOW US
Get the latest news in Application Packaging