This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Running CA only when SQL Catalog WAS absent?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 02, 2009
06:22 AM
Running CA only when SQL Catalog WAS absent?
I need to run a Custom Action that basically executes an external program that fills a database.
For the CA to know the connection, I use the SQL Login dialog.
However, it is possible that the database already exists or that it does not exist. In case it does not exist, I need it to be created and later filled. If it already exists, the CA must not run.
For the database to be automatically created, I checked the "Create catalog if absent" checkbox.
How can the CA know that the catalog actually HAS been absent?
For the CA to know the connection, I use the SQL Login dialog.
However, it is possible that the database already exists or that it does not exist. In case it does not exist, I need it to be created and later filled. If it already exists, the CA must not run.
For the database to be automatically created, I checked the "Create catalog if absent" checkbox.
How can the CA know that the catalog actually HAS been absent?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 02, 2009
06:55 AM
If you can change the external program, you can run the CA everytime and let the external program decide to fill the database or not.
Stefan
Stefan
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)