473,657 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retrieve program version as it is in Add/Remove Programs??

Hi folks,

I'm searching on this issue since a couple of days:

How do I programmaticall y retrieve the version of an installed
program? Is there a possibility to retrieve it via the local MSI
database? Or do I have an other chance to get to this information? I
need to retrieve it because I do have to check if an update of my app
is necessary. But therefore I need to know what Version currently is
installed.

It drives me insane, because there is no chance to get this
version-info - besides checking each DLL or assembly for the version,
which is not that kind of reliable...

Does anybody have a glue? Perhaps via MSI?

TIA!
Eddy
Nov 16 '05 #1
1 3067
Hi Eddy,

It's in the registry - but the form is cryptic indeed. Every application and
package installed via MSI has a GUID, and you should know the GUID to
retrieve the information on an application or a package.

Check out the following keys:

HKEY_CURRENT_US ER\Software\Mic rosoft\Installe r\Products
HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Installer\User Data

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Eddy Fuchs" <ed***@intec-ag.com> wrote in message
news:ba******** *************** ***@posting.goo gle.com...
Hi folks,

I'm searching on this issue since a couple of days:

How do I programmaticall y retrieve the version of an installed
program? Is there a possibility to retrieve it via the local MSI
database? Or do I have an other chance to get to this information? I
need to retrieve it because I do have to check if an update of my app
is necessary. But therefore I need to know what Version currently is
installed.

It drives me insane, because there is no chance to get this
version-info - besides checking each DLL or assembly for the version,
which is not that kind of reliable...

Does anybody have a glue? Perhaps via MSI?

TIA!
Eddy


Nov 16 '05 #2

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

Similar topics

22
3592
by: edgrsprj | last post by:
PROPOSED EARTHQUAKE FORECASTING COMPUTER PROGRAM DEVELOPMENT EFFORT Posted July 11, 2005 My main earthquake forecasting Web page is: http://www.freewebz.com/eq-forecasting/Data.html Newsgroup Readers: If you circulate copies of this report to groups of computer programmers at different universities etc. around the world then they might find the subject matter to be interesting.
2
1477
by: Mike | last post by:
I have previously used Access versions 97, 2000, 2002, and now 2003. I have written a program and wanted to send it to someone who only has Access 2002. I removed version 2003 and reinstalled 2002 but I can't see or open the program (though when I go to "ADD/Remove Programs" in the control panel, it is there.) There is no icon for it, it is not under "ALL Programs" on startup menu and I can't start it via "Explorer".
5
27668
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 to do this?.. Thanks for any help... Bryan
5
20384
by: Adam Clauss | last post by:
I am needing to automate some installation tasks. I first need to determine if there is already a version of a program installed. The program appears in the Add/Remove Programs in control panel, and I know this is all stored in the registry. But short of searching through the entire registry, I cannot figure out how to locate the program. I see that in the registry (for .msi) installs, stores something like:...
22
2705
by: JoeC | last post by:
I am working on another game project and it is comming along. It is an improvment over a previous version I wrote. I am trying to write better programs and often wonder how to get better at programming. I tend to learn what is useful and gets the job done. I am always curious if there is some techique I don't know. I read books and study as well as write programs. My goal is to some day be able to get a job programming. I have a...
1
1464
by: Jona | last post by:
Hello, This might be easy but I have no clue how too.... I'm currently writting a program in Microsoft Visual C++ and a file in the .rc called (_VERSION_INFO - Version) keeps my programs information nice and neat... :p like the programs version.... I want to know how I can retrieve my programs version information from there... so I can display that to the user..? Like an About option were it goes and get this information....
1
2510
by: Kayvine | last post by:
Hi guys, this is a question I have for an assignment, it is pretty long, but I am not asking for the code(well if someone wants to write I'll be really happy, lol), but I just want to know how to start it and what main topics in C I will need to cover in the assignment. Thanks a lot. CSC180 Assignment #3: Menu Madness Due Date: Thursday, November 8th at 1:00am Contents: · General Info · What to Hand In o Submission Instructions
3
1334
by: wdandrews1 | last post by:
/* Remove.c ** Usage: remove < In_file Out_file (using redirection) */ #include <stdio.h> #include <stdlib.h> int main(void) { char c; int space = 0;
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.