Forum > Suggestions

Show proper version numbers in Lazarus

<< < (2/3) > >>

Martin_fr:

--- Quote from: OLLI_S on July 11, 2018, 03:55:29 pm ---It would be easier when the correct version is stored in the lazarus.exe because the update manager reads this information from EXE files and all other products work this way.

--- End quote ---
This should normally be done. But as it appears errors can happen. (It is not automated).
Anyway this can only be fixed for the next version.

OLLI_S:

--- Quote from: GetMem on July 11, 2018, 12:01:45 pm ---($LazarusDir)\components\ide\version.inc
($LazarusDir)\components\lazutils\lazversion.pas

--- End quote ---

I searched for the files in my Lazarus directory (C:\Lazarus) but the folder \components\ is not existing.
I found C:\lazarus\ide\version.inc and here the version number is shown.
But I did not find lazversion*.*


--- Quote from: Martin_fr on July 11, 2018, 04:28:56 pm ---This should normally be done. But as it appears errors can happen. (It is not automated).
Anyway this can only be fixed for the next version.

--- End quote ---

I know that it can only be done for the next release, but I really would appreciate if the version number is stored in the lazarus.exe.
And If this is now done for all future releases.

Thank you!

Best regards

OLLI

ASerge:

--- Quote from: GetMem on July 11, 2018, 12:01:45 pm ---($LazarusDir)\components\ide\version.inc
($LazarusDir)\components\lazutils\lazversion.pas

--- End quote ---
This is taken from the file ($LazarusDir)\IDE\lazarus.lpi:

--- Code: XML  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---<?xml version="1.0" encoding="UTF-8"?><CONFIG>  <ProjectOptions>...    <VersionInfo>      <UseVersionInfo Value="True"/>      <MajorVersionNr Value="1"/>      <MinorVersionNr Value="8"/>      <BuildNr Value="5"/>      <CharSet Value="04B0"/>      <StringTable ProductName="Lazarus IDE" ProductVersion="1.8.0.2"/>    </VersionInfo>

wp:
If you have Laz 1.8.4 or older add "lclversion" to the "uses" clause. CTRL-Left-Click on this word, and the unit lclversion will be loaded into the editor. In Laz trunk you should do the same wth the unit "lazversion".

In the source editor you see these constants for the current lazarus version:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---const  laz_major = 1;  laz_minor = 9;  laz_release = 0;  laz_patch = 0;  laz_fullversion = ((laz_major *  100 + laz_minor) * 100 + laz_release) * 100 + laz_patch;  laz_version = '1.9.0.0';

OLLI_S:
Your answers (that I should include some units in my project) show that you misunderstood me.
Sorry if I caused any misunderstanding.

I am a hobby programmer but I am not the programmer of the update manager.
I am helping the update manager keeping the database up-to-date (report missing apps and missing versions to the database).
So I coded a little too in Lazarus for helping me (but this is not the update manager).

Recently I reported Lazarus to the database and I discovered that the version number stored in the lazarus.exe is not the same number displayed in Help -> About.
So I suggested that you correct this, so the update manager can detect the installed version correctly.
And this update manager can be used by every user (also by users that have Lazarus installed).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version