Results 1 to 9 of 9
Thread: Access registry
- 09-01-2009, 07:34 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
- 09-01-2009, 07:52 AM #2
Simply try to open a database connection with a mysql driver should prove whether mysql is installed.
Edit: with invalid credentials and check for "Access denied for user" in the Exception message.Last edited by mrmatt1111; 09-01-2009 at 08:01 AM.
My Hobby Project: LegacyClone
- 09-01-2009, 08:06 AM #3
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
But I want to check during installation of a software.
- 09-01-2009, 09:06 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
What if the program was uninstalled but the registry key for it was not removed?
Last edited by r035198x; 09-01-2009 at 09:09 AM.
- 09-01-2009, 10:55 AM #5
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
I tell in detail.
I want to create a installer. That installer has to check whether MySql is installed in that particular system or not? So only I want to check the registry through java.
How can i achieve this seniors?
- 09-01-2009, 11:01 AM #6
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Use another language that is more suitable to the task. Java is platform independence meaning it should not be used for platform dependent tasks.
P.S You also did not answer my question above.
- 09-01-2009, 11:27 AM #7
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
Can you suggest any language to do that task?
I did not know answer for your question, do u suggest any idea for that?
I hope it save me...
- 09-01-2009, 11:42 AM #8
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
C/C++ are capable languages. If you still want your installer to be a Java one then you can call the C/C++ functions using JNI.
The question was just to make you aware of the limitations of your approach. Your installer would also be useless on Non-Windows machines.
P.S There are also a few programs that generate installers for you. Google will help point them out.
- 09-01-2009, 12:16 PM #9
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
RMI registry
By tarunkumar in forum Advanced JavaReplies: 1Last Post: 09-30-2008, 08:02 PM -
Registry Problem
By Mir in forum New To JavaReplies: 1Last Post: 07-19-2008, 04:12 PM -
SWT Font Registry Example
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:46 PM -
windows registry
By Fleur in forum New To JavaReplies: 3Last Post: 06-20-2008, 03:23 AM -
could not be found in the registry
By alam99 in forum EclipseReplies: 0Last Post: 01-08-2008, 08:21 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks