Notepad++ Version Standardization request



  • Hello all,

    I have completed an Ansible role to install Notepad++.

    Here is the code if anyone is interested:

    - name: Set Notepad++ Version
      set_fact:
        version: 7.5.4
    
    - name: Installing Notepad++
      win_package:
        path: 'https://notepad-plus-plus.org/repository/7.x/{{ version }}/npp.{{ version }}.Installer.x64.exe'
        arguments: '/S'
        creates_version: '7.54'
        creates_path: 'C:\Program Files\Notepad++\notepad++.exe'
        state: present
      when: ansible_os_family == 'Windows'
    
    - name: Add Notepad++ to Path Variable on Windows hosts
      win_path:
        elements:
        - 'C:\Program Files\Notepad++'
      when: ansible_os_family == 'Windows'
    

    However, during this process, I noted that there is some inconsistency with the current version (between the FileVersion Property value and the Registry Version value).

    This is best shown via PowerShell:

    PS C:\Windows\system32> [System.Diagnostics.FileVersionInfo]::GetVersionInfo('C:\Program Files\Notepad++\notepad++.exe').FileVersion
    7.54
    PS C:\Windows\system32> (Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Notepad++).DisplayVersion
    7.5.4
    PS C:\Windows\system32>
    

    Is there any way that file version property could be updated in future releases to match what is displayed on the website and in the Registry?

    Thanks for your time and consideration.

    Respectfully,
    Robert J.


Log in to reply