DoubleA
Pilgrim

Confirm database connection

In my install I am letting users connect to there own database via input variables. I would like to once they enter in the information check to see if InstallAnywhere can make a connection to the database. Before they get to deep into the install.
For the life of me I cant think of a way to do so.

Anyone have any ideas or examples on how you have done this?
Labels (1)
0 Kudos
2 Replies
RamyaVenkatesh
Pilgrim

Re: Confirm database connection

Hi,

You can have an IA custom code written in java to check for database connection and add this as a part of the Execute custom code action provided by IA(Check InstallAnywhere for help on writing custom code). Let me know if this helps.
0 Kudos
SunnyBoy
Pilgrim

Re: Confirm database connection

You can use DatabaseAction custom code action to verify the database in the below link under Files & Utilities tab > Custom Code.

http://www.flexerasoftware.com/products/installanywhere/files-utilities.htm

The custom code action connects to a database, reads SQL from a file, executes the queries, and closes the database.

Regards
SunnyBoy
0 Kudos