LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Distribution Kit help

Hi,

I'm trying to create a distribution kit for a CVI and TestStand based
solution. I am able to integrate the CVI run-time library install and
TestStand Engine installs ok but I need to know how to get it to
automate the addition of an ODBC driver entry. Basically, my application
needs a specific system DSN to be added to the ODBC driver so that I can
access a database file.

Any help will be appreciated,

Thanks,
--
Emile Semmes
Tellabs Operations, Inc.
BMG NPI Support
Voice: 630.378.8489
Pager: 6499486@skytel.com
0 Kudos
Message 1 of 2
(2,991 Views)
Hello Emile,
You can programmatically add a DSN to you system by using the function SQLConfigDataSource() located in odbccp32.dll. You can find the full documentation to this function at http://www.msdn.microsoft.com. Possibly you could write a small application that uses this function to setup your DSN and run it as part of your installation. Good Luck!

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,991 Views)