I'm currently attempting to create a database and attach a .mdf in an existing SQL Server instance on the target machine. Previously, using WIX, I would target the master DB in the SQL Server instance and run a CREATE DATABASE statement with the appropriate file for attachment. In Advanced Installer I created a Predefined Connection with the Server property set to a User Defined Install Parameter Property named SQLSERVERINSTANCE and created a script with the same CREATE DATABASE statement. SQLSERVERINSTANCE is made of two other properties as such: [|SQLDBSERVER]\[|SQLDBINSTANCE], I want the value to read something like
ComputerName\SQLEXPRESS as an example. How do I set the SQLDBSERVER property as the target machine's name? I have tried several different approaches, including creating another property named COMPUTERURI, having a custom action set that property to the OS ComputerName variable then point SQLDBSERVER to COMPUTERURI. This was the approach I found here:
http://www.advancedinstaller.com/forums ... f=2&t=8291 It's not an identical case but was the closest thing I could find.
Or if I'm going about this in the entirely wrong fashion how best should I proceed to create a database and attach the .mdf?
Thank you in advance for any and all input

FOLLOW US
Get the latest news in Application Packaging