Am looking at trying to install a new SQL database as part of a new install.
I have a silent install of SQL 2014 working as a pre-requisite successfully in Advanced Installer.
From within advanced Installer - Server | SQL Databases am looking at executing the inline script to RESTORE DATABASE myDataBase FROM DISK = 'C:\ProgramData\MyCompany\myDataBase.bak' plus some other db commands.
During the install the restore command of the database is NOT working.
That part of the script is "Missed" (and does not abort even though I have On Error abort) and the script then fails on the next inline script db commands saying that myDataBase does not exist.
If I manually do the Restore from within SQL Management Studio (i.e. outside Advanced Installer) and run the install all works OK i.e. the additional db commands work successfully.
Any suggestions.
Brian
FOLLOW US
Get the latest news in Application Packaging