473,395 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

programmatically checking if windows 2.0 is installed

How can I programmatically check to see if windows installer 2.0 is
installed? Is there
a registry setting I can check?

Thanks!

Aug 27 '06 #1
1 1588
using System.Diagnostics;
using System.IO;
........
string msiPath = Environment.SystemDirectory + "\\" +
"msi.dll";
if (File.Exists(msiPath))
{
//Make sure version is 2.0 or greater
if
(FileVersionInfo.GetVersionInfo(msiPath).ProductMa jorPart < 2)
{
//Take action...
}
}
ro*********@gmail.com wrote:
How can I programmatically check to see if windows installer 2.0 is
installed? Is there
a registry setting I can check?

Thanks!
Aug 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Thomas Jespersen | last post by:
Hello I want to create a MSI file programmatically. Do you know of any third party .NET component which can help me with that? I'm going to use it like a self extracting zip. So it is not...
2
by: Vince Keller | last post by:
I dont know if this is the correct newsgroup to post questions on Windows Service. I am trying to install and uninstall a Windows Service programmatically. As far as I know, there isnt a class...
5
by: Bryan | last post by:
I am writing a C# program that needs to see if a particular program is installed (it would be listed in the "Add or Remove Programs" list from the Control Panel) and uninstall it. Is there a way...
2
by: Jak Sparrow | last post by:
What are some good ways to programmatically check for software already installed on a computer? For example, to check a version of Internet Explorer, a program can check the registry for the...
6
by: Matt Frame | last post by:
I have a client that has asked us to get a digital signature certificate and start digitally signing all files we pass between each other. I have heard of the subject and know about the certs but...
0
by: Simon Verona | last post by:
My application autoupgrades itself by uploading an msi file from the server and then executing it, immediately terminating to let the installation script run. The problem I have is that...
1
by: PetersonMike | last post by:
One gets countless hits when searching for discussions on the need to install IIS before .NET so that ISAPI references are setup properly. It's also documented that one can run apsnet_regiis.exe...
1
by: Superfreak3 | last post by:
We have a web application that will be installed as a virtual directory. It will either default to the Default Web Site or allow the choice of the site to which the vir. dir. will be installed, if...
0
by: Ralf Abramowitsch | last post by:
Hi, I'm writing a trouble shooting utility that checks my assembly references. It creates a report for the support. Now I want to add some routines to check for installed runtimes. Ok, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.