all groups > visual studio .net setup > june 2007 >
You're in the

visual studio .net setup

group:

Launch condition to detect the presence of Access


Launch condition to detect the presence of Access David Jackson
6/25/2007 5:17:25 PM
visual studio .net setup:
Hello,

I've written an application in Microsoft Access and am now writing a setup
package for it.

This doesn't use the Access runtime, so requires Access to be installed on
the target machine.

Specifically, the installation must check for the presence either of Access
2003 or Access 2007, and abort the installation if it can't find either one.

What would be the best way to do this?

Thanks,

DJ

Re: Launch condition to detect the presence of Access David Jackson
6/26/2007 12:00:00 AM
[quoted text, click to view]

Hi Mark,

Thanks for the reply.

[quoted text, click to view]

That's exactly what I was looking for. Works perfectly!

Thanks very much.

DJ

Re: Launch condition to detect the presence of Access Mark Rae
6/26/2007 1:33:52 AM
[quoted text, click to view]

No problem. The following article:
http://www.mztools.com/articles/2006/MZ001.htm describes how to detect for
one or more versions of Visual Studio.NET, and you can use the same
technique to detect version(s) of Access, or of any other application so
long as you know which Registry entries to check.

In the case of Access, you need to look for:

Access.Application.8 - Access 97
Access.Application.9 - Access 2000
Access.Application.10 - Access 2002
Access.Application.11 - Access 2003
Access.Application.12 - Access 2007


--
http://www.markrae.net
AddThis Social Bookmark Button