Articles   Members Online: 3
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to properly check if MS-Access is installed on a PC. Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
Properly check if MS-Access is installed on a PC. 20-May-04
Category
MS-Office
Language
Delphi All Versions
Views
470
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
Darley, F. Joe
Reference URL:
			1   
2   unit Unit1;
3   {
4   This code will properly check to see if MS access is properly installed on
5   A PC checking the registry is not good because there are cases where an
6   application does not install or uninstall properly.
7   }
8   interface
9   
10  uses
11    Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
12    Dialogs, OleServer, Access2000, StdCtrls;
13  
14  type
15    TForm1 = class(TForm)
16      Button1: TButton;
17      procedure Button1Click(Sender: TObject);
18    private
19      { Private declarations }
20    public
21      { Public declarations }
22    end;
23  
24  var
25    Form1: TForm1;
26  
27  implementation
28  
29  {$R *.dfm}
30  
31  procedure TForm1.Button1Click(Sender: TObject);
32  var
33   AccessTest :TAccessApplication;
34   bInstalled:boolean;
35  begin
36  bInstalled:=true;
37     try
38      AccessTest :=TAccessApplication.Create(self);
39      AccessTest.Connect;
40      except on E:Exception do begin
41           bInstalled:=false;
42      end;
43  
44     end;
45  if bInstalled then
46   showmessage('MS Access is installed')
47   else
48   showmessage('MS Access is NOT installed')
49  
50  end;
51  
52  end.


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC