I need to check if SQL server 2012 or higher is installed and collect information on all SQL instances installed locally. I can’t use the predefined condition ((AI_DETECTED_SQLEXPRESS_VERSION >= "2012") to check since it will also return true if SQL 2012 express is installed and does not provide all the information we need. The express addition will not work with our application.
With PowerShell I can check for all SQL server instances and collect the necessary information. Script works great outside of Advanced Installer but fails when run from a custom action. It is not able to read the require registry key even if package is set to run as administrator. I can't set custom action to "run under local system account with full privileges" since it needs to run during the wizard page stage. I did try running it in the install stage but the option still remains grayed out.
I decided to try another approach and use the custom search feature but the issue is the required registry key is not display for selection:
The required key is: HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names.
The Registry key.jpg is the view from "regedit" which shows the required key. Second image "AI.jpg" shows the search key action from Advanced Installer with the key missing. I've compared the "Instance Names" key permission with other keys that are visible from Advanced Installer and they have identical permissions. Any ideals why the key is not showing or possible alternatives to what we are trying to accomplish?
Thank you,
Diego
FOLLOW US
Get the latest news in Application Packaging