Solved

Creating DSN Automatically through Install shield for Java

Posted on 2001-06-16
3
1,328 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
ID: 6201042
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
ID: 6202452
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
ID: 6210213
Thank you very much.

Best Regards,
Sagar
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 91
reverse digits of a number using for loop 5 41
eclipse buid path vs tomcat lib path 10 23
jboss wildfly 10.1 10 92
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

773 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