I am using Advanced Installer Professional 4.3.
I need a way to definitively verify if SQL Express Edition has been installed as a prerequisite.
After much research I found this can be accomplished through a registry check as follows.
1.Loop through all sub-keys in “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\” for key names matching each instance value defined in “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\”. EXAMPLE: “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\”
2.If instance key is found then check the “EditionType” value under the “\Setup\” key for the value “Express Edition”. EXAMPLE: “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup\”
3.If an instance with an “EditionType” of “Express Edition” is found then SQL Express Edition has been installed, if not then it has not been installed.
My problem is that standard AI ‘Prerequisite>Install Conditions’ using “Registry Value” or “Registry SubKeys Enumeration” do not allow for this type of registry looping.
I can easily create a dll that can accomplish this and return a boolean, but I do not know how to tie the result code to the prerequisite?
Or maybe there is a way to accomplish this through AI directly, no dll or scripting required?
Any help would be appreciated.
FOLLOW US
Get the latest news in Application Packaging