Results 1 to 4 of 4

Thread: How can you check/retrieve the currently installed version of an application?

  1. #1
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    60

    Question How can you check/retrieve the currently installed version of an application?

    Hey All,

    I need a method of retrieving the currently installed version of an application. Specifically, I would like to retrieve this installed version and compare it to the current version of the installation program that the user is currently running and take action based on the results.

    Any property or condition I can evaluate? Any advice or insight is appreciated.

    Thanks!

  2. #2
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    60

    Additional Information

    I hope someone can help me out as this resolving this issue is fairly important.

    Here is some added information about my situation:

    1. My installation project type is a Standard Project.
    2. I think if I can somehow retrieve the value for the MSI property INSTALLPROPERTY_VERSIONSTRING, it may go a long way towards finding the solution to my problem.

    Thanks in advance for the help!

  3. #3
    Join Date
    Jul 2002
    Location
    Deutschland
    Posts
    209

    use the upgrade table

    you'd have to use the upgrade table (available in "direct editor", only):

    add the upgrade code of the product you want to check.

    add the version range and a target property.

    set the mode to "detect ONLY".

    don't forget to add your custom property to the "securecustomproperties" or whatever it's called.

    off you go ...

    cheers, graven (basic MSI)

  4. #4
    Join Date
    Jan 2002
    Location
    Melbourne, Australia
    Posts
    668
    If you get a hold of the Windows Installer help from Microsoft, this has an example of how to setup your upgrade table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •