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!

suresh
Posts: 3
Joined: Wed May 14, 2014 11:13 am

changing the value in Sql Script during installation

hi there support,

i am trying to create an installer with advanced installer, and i would like to know if it's possible to change the value in sql script during installation. For example i have script in my installer to attach database such as below:

USE [master]
GO
CREATE DATABASE [FingerTips8] ON
(FILENAME = N'C:\Program Files\app\Data\example.mdf'),
(FILENAME = N'C:\Program Files\app\Data\example.ldf'),
FILEGROUP [FileStreamGroup] CONTAINS FILESTREAM DEFAULT
(FILENAME = N'C:\Program Files\app\Data\exampleFS' )
FOR ATTACH
GO

I might have to change the value for the highlighted area depends on the customer, so is there a way for me to overwrite the value during installation?? do ask me if you need more info.

Regards
Suresh
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: changing the value in Sql Script during installation

Hello Suresh and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Yes, you can do this by using our "SQL Scripts Replacements" support. Please take a look on our "Use a property in a SQL script" how to.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
suresh
Posts: 3
Joined: Wed May 14, 2014 11:13 am

Re: changing the value in Sql Script during installation

Thanks Daniel that actually helps a lot.

Regards
Suresh
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: changing the value in Sql Script during installation

You're welcome Suresh.

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

Return to “Building Installers”