Client/server and sql scripts - 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!

goset
Posts: 8
Joined: Thu Sep 01, 2011 2:22 pm

Client/server and sql scripts

I am trying to build a client server install and I would like to have sql scripts only run on the server side. How can I do this? it is trying to connect and run the sql scripts on both installs.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Client/server and sql scripts

Hello and welcome to Advanced Installer forums,

Each sql script has "Script Conditions" field which can be configured from the SQL Scripts page. Unfortunately there is no predefined public property you can use to detect the install type( client or server ).

However, since each installation( for client or for server ) has its own component in the Organization page, you can try to use the following expression to condition your sql scripts:

Code: Select all

&Server=INSTALLSTATE_LOCAL
This condition will be true only if the feature "Server" will be installed locally. If the feature is not selected for installation( Client installation is performed ) the condition is false.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”