Solved

Creating DSN Automatically through Install shield for Java

Posted on 2001-06-16
3
1,320 Views
Last Modified: 2008-03-03
I'am doing a appliction (Java) APPLICATION THAT SYNCHRONIZES THE DATA FROM the webversion.The problem is that  during the setup time only using installed shield for java ,i want to create the DSN Automatically.Is i possible with the 3.1 and Later versions of Install shield for Java .Is it possible?.

I'am using Ms Access Database

Advanced thanks
0
Comment
Question by:pusuluri_sagar
3 Comments
 
LVL 3

Accepted Solution

by:
shyamkumarreddy earned 100 total points
Comment Utility
Hey Sagar
U need to write Platform specific code.

Please write a Registry programming using java or run a C++ program to registry an entire for DSN creation.
Then u can go ahead in installing.

Do u got me.

Any way installation shield doesn't support this, but u can write a one and include this in your shield


Cheers
Shyam
0
 
LVL 1

Expert Comment

by:wgilster
Comment Utility
Here are the registry settings for a sample Access database.  The DSN name is DSNTest and the database is c:\my documents\test.mdb


[HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\DSNTest]
"Driver"="C:\\WINDOWS\\SYSTEM\\ODBCJT32.DLL"
"DBQ"="C:\\My Documents\\test.mdb"
"Description"="Test Database for JDBC"
"DriverId"=dword:00000019
"FIL"="MS Access;"
"SafeTransactions"=dword:00000000
"UID"=""

[HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\DSNTest\Engines\Jet]
"ImplicitCommitSync"=""
"MaxBufferSize"=dword:00000800
"PageTimeout"=dword:00000005
"Threads"=dword:00000003
"UserCommitSync"="Yes"

[HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ODBC Data Sources]
"DSNTest"="Microsoft Access Driver (*.mdb)"
0
 

Author Comment

by:pusuluri_sagar
Comment Utility
Thank you very much.

Best Regards,
Sagar
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now