SQL Script Need to Execute only for New Installation - Advanced Installer Community
ameen.jinnah
Posts: 19
Joined: Wed Sep 28, 2016 7:22 am

SQL Script Need to Execute only for New Installation

Hi,

I have one SQL Script file (like creating tables, SPs & Views) which needs to execute only for New Instance Installation. For upgrades, I don't want this script to be executed. How to set the condition?

Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL Script Need to Execute only for New Installation

Hello,

Can you please use the following condition

Code: Select all

( NOT Installed AND NOT OLDPRODUCTS )
and let us know if this worked?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ameen.jinnah
Posts: 19
Joined: Wed Sep 28, 2016 7:22 am

Re: SQL Script Need to Execute only for New Installation

Hi Daniel,

This is working.
Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL Script Need to Execute only for New Installation

You're always welcome.

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

Return to “Common Problems”