SQL script during installation - Advanced Installer Community

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!

Niyo
Posts: 6
Joined: Thu Feb 03, 2011 8:00 am

SQL script during installation

Hi,

I want to run SQL script (myQuery.sql) during installation,
I added a sql file as custom action and tried to run as "DoAaction" on Published Events of "SQLConnectionDlg" Next button, but got error

"There is a problem with this windows Installer package. A program require for this install to complete could not be run. Contact your support personal or package vendor"

If I remove "DoAction", Setup run properly.

How to execute sql script during installation?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL script during installation

Hi,

You can run SQL Scripts from the SQL Scripts Page. Here is the step by step tutorial you can follow. Also, here is the complete article on SQL Scripts from our user guide.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Niyo
Posts: 6
Joined: Thu Feb 03, 2011 8:00 am

Re: SQL script during installation

Many Thanks,

Solved the issue.

Return to “Common Problems”