?
Solved

Creating DSN Automatically through Install shield for Java

Posted on 2001-06-16
3
Medium Priority
?
1,336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Accepted Solution

by:
shyamkumarreddy earned 300 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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.
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

800 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