Previous Topic: Advanced Recognition Parameter Dialog: Package TabNext Topic: Get Package Version in Windows


Get Package Release in Windows

To get the package release number in Windows

  1. Click Start, Run and enter regedit.exe.

    The Registry Editor window opens.

  2. Scan all the subkeys of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
  3. Extract the version information from any of the following methods:
    1. Extract the Version value and convert it to a string in X.Y.Z format where:

      X is the most significant 8 bits.

      Y the next 8 bits and.

      Z the low order 16 bits in decimal format.

    2. If Version is not found, extract the DWORD values VersionMajor and VersionMinor and create a string in the format VersionMajor.VersionMinor or simply VersionMajor if VersionMinor is missing.
    3. If the DWORD value is also not found extract the string versions of VersionMajor and VersionMinor and concatenate them as VersionMajor.VersionMinor, or as simply VersionMajor if VersionMinor is undefined.

    This forms the package release number.