We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ahmedabdellatiff
Posts: 1
Joined: Sat Nov 22, 2014 8:23 pm

Attach Sql Database

hi
i try to create setup file by Advanced Installer software for my C# desktop application
that use sql server database (mdf)file
i need to attach this database on local sql server of user in setup process
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Attach Sql Database

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can use our "SQL Databases" feature. For example you can add your MDF file in "Files and Folders" page, then you can go to "SQL Databases" page and add an SQL script which will attach the MDF file to SQL Server. Please take a look on our "Use a property in a SQL script" article for a conclusive example.

Also, in order to get a starting point about how our "SQL Database" feature works you can walk through our "Configure most common SQL connections" and "Using SQL Scripts" user guide articles.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”