Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How To Run a SQLScript from Multiple SQLScript


5 replies to this topic

sanjoygr

sanjoygr
  • Full Members
  • 76 posts

Posted 12 July 2006 - 12:54

Basic MSI project created using Install Shield Version 11.0

Created a single SQLConnection1, provided the requirements.
Now added a few SQLScript1, SQLScript2,SQLScript3.

I want to put condition which will allow only one SQLScript to run out of the bunch of SQLScripts file.

Please let me know how to accomplish it. At least give some hints.

Thanks
Sanjoy

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 13 July 2006 - 13:42

Have you tried the Condition field in the SQL Script settings?

sanjoygr

sanjoygr
  • Full Members
  • 76 posts

Posted 14 July 2006 - 13:36

Thanks Stefan,
I think the problem can be solved using condition filed in SQL script.

However it would be better if I could put condition in my install shiled basic msi based on which could have called different SQL scripts as per requirement.

Thanks
Sanjoy

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 17 July 2006 - 19:56

I guess I don't understand what you're trying to do.
You can have multiple SQL script and select which one to execute using these conditions.

sanjoygr

sanjoygr
  • Full Members
  • 76 posts

Posted 18 July 2006 - 06:44

Yes Stefan,

I am having multiple sql script and select one of them to execute depending upon some condition like 1st time installation or updation.

I thought of following way to do so.
However I do not know If I am correct.

1. Create two property using property manager
eg optScriptUpdate and optScriptNew both initialize to 0.

2. Put a RadioButton Group in SQLLogin Dialog

3.Depending upon which Option the user selects, the particular script will be executed depending upon "Specify condition statement" example optScriptUpdate=1

Thanks
Sanjoy

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 July 2006 - 06:58

Yes, that should work.