Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Reading Version# from Setup?

Reading Version# from Setup?

Scheduled Pinned Locked Moved C#
questionsysadminannouncementworkspace
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ariadne
    wrote on last edited by
    #1

    Hi, How can I get the version number of the Setup (last item in the deployment-project property window)? I would like to use this version # instead of the complex Application.ProductVersion #. Thanks Ariadne

    M 1 Reply Last reply
    0
    • A Ariadne

      Hi, How can I get the version number of the Setup (last item in the deployment-project property window)? I would like to use this version # instead of the complex Application.ProductVersion #. Thanks Ariadne

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Hi! IIRC, there's the variable [ProductVersion] you can use, for example as argument to a custom action. Regards, mav

      A 1 Reply Last reply
      0
      • M mav northwind

        Hi! IIRC, there's the variable [ProductVersion] you can use, for example as argument to a custom action. Regards, mav

        A Offline
        A Offline
        Ariadne
        wrote on last edited by
        #3

        Hi Mav, there's the variable [ProductVersion] you can use does that mean, I have to export this variable at setup-time into eg. registry-entry and read that, if the user requests a about box? Ok - good idea, but how to insert the [ProductVersion] in the Registry-key? What do I have to type in the value property of the registry settings property in the setup project? Thanks Ariadne

        M 1 Reply Last reply
        0
        • A Ariadne

          Hi Mav, there's the variable [ProductVersion] you can use does that mean, I have to export this variable at setup-time into eg. registry-entry and read that, if the user requests a about box? Ok - good idea, but how to insert the [ProductVersion] in the Registry-key? What do I have to type in the value property of the registry settings property in the setup project? Thanks Ariadne

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          Doesn't simply setting the RegKey's value to [ProductVersion] work? I guess Windows has to store this value somewhere in the registry as well, because you can look it up using the Software control panel, but I don't know where. Regards, mav

          A 1 Reply Last reply
          0
          • M mav northwind

            Doesn't simply setting the RegKey's value to [ProductVersion] work? I guess Windows has to store this value somewhere in the registry as well, because you can look it up using the Software control panel, but I don't know where. Regards, mav

            A Offline
            A Offline
            Ariadne
            wrote on last edited by
            #5

            mav.northwind wrote: Doesn't simply setting the RegKey's value to [ProductVersion] work? No, unfortunatly not. mav.northwind wrote: guess Windows has to store this value somewhere in the registry as well, because you can look it up using the Software control panel, but I don't know where. Yes, but it is a path like: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ CurrentVersion\Installer\UserData\S-1-5-18\ Products\18BDC9716DDB9A34F877C4F67C64396B\InstallProperties and that is IMHO too heavy to decode. Now I'm just writing a little program, which increments the build No. each time a build a release version. (I have posted an article here in codeproject). This make more sense in my situation. Thanks Ariadne

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups