Hello,
To achieve what you want you should add your SQL setup prerequisite as a feature-based prerequisite. Then, create your own custom action which search for the available drives on current machine and sets an installer property (e.g. SQL_INSTALL_PROP) to the desired installation path. Just have a look on our
"Set an installer property using custom actions" article which should be useful.
Finally you should go to "Prerequisites" page, select your SQL prerequisite, go to "Setup Files" tab and in the "Install Command Lines" fields append a command line like this:
Also, please be aware that several version of the
SQL Server Express could generate installation failures when scheduled as feature-based prerequisites.
Hope this helped.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging