-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match product version of notepad++.exe with release version #14010
Labels
Comments
This was requested before in #11431, #11886 and probably elsewhere. The maintainer's rejection of the idea sounds non-negotiable to me. |
Related: #13842 Powershell testing with 2 Notepad++ executables in the current directory $files = 'notepad++_854.exe', 'notepad++_856.exe'
$result = @()
foreach ($file in $files) {
"$file"
$ver = (Get-ChildItem -Path $file).VersionInfo.FileVersionRaw
"FileVersion: $ver"
$ver
$ver = (Get-ChildItem -Path $file).VersionInfo.ProductVersionRaw
"ProductVersion: $ver"
$ver
$result += $ver
}
"{1} > {0}" -f $result
$result[1] -gt $result[0] Outputs
Notepad++ versioning seems ok to me. |
Sadly there is a flaw in your code, Most detection mechanisms work with the ProductVersion sub-attribute (not ProductVersionRaw) Try:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the Issue
Each new version of Notepad++ has (IMHO) the wrong Product version, which makes it difficult to use software deployment tools to accurately detect the version installed (so we currently have to rely on using the last modified date) e.g.
![image](https://private-user-images.githubusercontent.com/113043470/260936631-53e471f6-13f4-4bab-9553-d72e738b5002.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNzA5MTgsIm5iZiI6MTcyMDE3MDYxOCwicGF0aCI6Ii8xMTMwNDM0NzAvMjYwOTM2NjMxLTUzZTQ3MWY2LTEzZjQtNGJhYi05NTUzLWQ3MmU3MzhiNTAwMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNVQwOTEwMThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMjM0M2Q1YTYzMTA2NGM5ODNhN2UzNmQyNzRlNDExNTJkYjBiYzBmN2IxNzIzODQxNTNmNmQ5NTE0ZWI5ZDRlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.JdRl3nbrgsdycOWNjLcWY5XBH7Mg4J8XuozXJtH_qG8)
for the latest release 8.5.6 the product version of c:\Program Files\Notepad++\notepad++.exe is 8.56 (file version is correct 8.5.6.0)
Steps to Reproduce the Issue
Expected Behavior
Product version should match each version release
Actual Behavior
There is a missing decimal place between the last two digits (e.g. 8.56 should be 8.5.6)
Debug Information
Notepad++ v8.5.6 (64-bit)
Build time : Aug 15 2023 - 15:29:28
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : ON
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 21H2
OS Build : 19044.3324
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
The product version detection does not work properly for Notepad++ between version upgrades from a software deployment tool (such as Intune or SCCM) as if this change is made in a subsequent 8.x release such as 8.5.7 this will be detected as less than 8.56 (not greater than), So I understand it may be best to make this change in the next Notepad++ major release (e.g. v9.0.0 - As 9.0.0 is greater than 8.56)
Thanks in advance
The text was updated successfully, but these errors were encountered: