I'm aware that it seems only possible to perform a database restore by executing a script using 'sqlcmd.exe' and not directly with Advanced Installer (has this changed since?).
Problem is a script will need hard coded paths to the database backup file and MDF restore paths. eg:
Code: Select all
RESTORE DATABASE SAMPLE
FROM DISK = 'C:\InstallDir\SAMPLE.bak'
WITH MOVE 'SQL_dat' TO 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\SAMPLE.mdf',
MOVE 'SQL_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\SAMPLE_log.ldf'
Thanks for your help.