• Login
Community
  • Login

File Versions are incorrect at 7.6.4+

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 641 Views
Loading More Posts
  • 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.
  • K
    KryptykHermit
    last edited by Apr 16, 2019, 1:07 PM

    Just realized while packaging 7.6.4, that the file version for notepad++.exe is now 7.64. Using a PowerShell script to detect the version as SCCM will not detect it using it’s internal detect method. Is this the versioning going forward? Or did someone just forget to add a decimal point?

    1 Reply Last reply Reply Quote 0
    • K
      KryptykHermit
      last edited by KryptykHermit Apr 16, 2019, 1:41 PM Apr 16, 2019, 1:41 PM

      Verified the same condition on 7.6.6 (shows as 7.66)

      [version]$requiredVersion = ‘7.66’
      $Path = “${ENV:ProgramFiles}\Notepad++”
      Try {
      [version]$installedVersion = (Get-Item -Path “$path\notepad++.exe” -ErrorAction “Stop”).VersionInfo.ProductVersion -as [version]
      If ($installedVersion -eq $requiredVersion) {
      Return 0
      } else {
      # remove for detection to work
      $installedVersion
      }
      } Catch {}

      Major Minor Build Revision
      ===== ===== ==== =======
      7 66 -1 -1

      M 1 Reply Last reply Apr 16, 2019, 2:59 PM Reply Quote 0
      • M
        Meta Chuh moderator @KryptykHermit
        last edited by Meta Chuh Apr 16, 2019, 8:05 PM Apr 16, 2019, 2:59 PM

        welcome to the notepad++ community, @KryptykHermit

        this has almost always been like that (except faulty versioning versions 7.6.1 to 7.6.3)
        file version will be 7.x.x.x
        product version will be 7.xx

        this product version scheme M.mm is also what the auto updater and the notepad++ update servers expect.

        if you have written your script based on 7.6.1 to 7.6.3, you will have to modify them accordingly.

        1 Reply Last reply Reply Quote 1
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors