[Psi-devel] Request for pokes

Michał Jazłowiecki michalj at poczta.neostrada.pl
Thu Oct 19 21:35:03 PDT 2006


Hal Rottenberg wrote:

> I'd appreciate having the version number in the Windows .exe.  A lot.
> Companies that use config management software to track software
> versions depend on this sort of information.

So, here it goes - I've attached .rc file and .manifest file from latest 
Psi-0.11-beta3-Daisy.


Some notes:
1. I had to use:

#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
#pragma code_page(1250)
#endif // #ifdef _WIN32

to change default encoding used in .rc file, otherwise Polish diacritic 
symbols (in my name and surname) would get scrabled. It's good to 
specify the encoding, anyway.

2. Please notice that there are two different versions, each one in two 
places in .rc file - one in the header of VersionInfo structure (the 
numbers separated with commas) and human readable in strings in 
StringFileInfo section.

3. I've used a major.minor.revision.build versioning schema, with 
major.minor.revision denoting Psi version (ie. 0.9.3, 0.10.0 (for 0.10), 
0.11.0 (for 0.11)). Build in fact represents build date - month 
concatenated with day.

4. Please notice, that numbers in versions in VersionInfo structure 
header must match the regexp (0|[1-9][0-9]*), ie. 0 may only appear at 
the beginning of the number if the value of the number is 0. Otherwise 
given number will become 0.

5. Flags in FILEFLAGS field describe the version of the application - in 
the case of Psi-Daisy, they tell that this is a special, private build. 
In official Psi the VS_FF_SPECIALBUILD and VS_FF_PRIVATEBUILD flags 
should be removed/commented out. In such case, strings "PrivateBuild" 
and "SpecialBuild" in StringFileInfo section below won't be used and not 
compiled in.

6. The include <windows.h> at the beginning of the file is crucial, 
otherwise constants used in the file will be undefined.


And be afraid to ask ;)


-- 
Michał Jazłowiecki (michalj)
Psi Forum & Wiki Moderator :: Psi-Daisy Author
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: psi_win32.rc
Url: http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20061020/41fa4730/psi_win32.ksh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: psi.manifest
Type: text/xml
Size: 645 bytes
Desc: not available
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20061020/41fa4730/psi.xml


More information about the psi-devel mailing list