View Full Version : Version Resource Tab - Product Version size limit?
NewsArchive
03-05-2008, 02:38 AM
Using the latest version of SB6 Developer.
I am adding a "Product Version" to the actual setup program by using
the General Information; Version Resource in the Setup Builder
program. I have placed a compiler variable there and it appears to
work except that it is only using the first 10 characters. Is this
correct?
I assume it is not a limit of the file itself in that I have set that
field with a longer value in my executables without any problem. The
version number that I am using of the format of 19.99.9999.999 (14
character long).
Barton
Barton Whisler
Prosoft Inc.
Tampa, Florida
NewsArchive
03-05-2008, 02:39 AM
Barton,
Yes, the File Version (string) and Product Version (string) in the
SetupBuilder installer version resource is limited to 10 bytes.
I'll check if it is possible to increase this to 20 bytes in the next build.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
03-05-2008, 02:40 AM
Thanks! In the mean time I have a work around that should do what I
need.
By the way, the File Version does show correctly on the File Property
tab but suspect that it is coming from an internal stored numeric
values (leading zeros are stripped). In the case that I looked at the
version was "19.0.803.41".
Barton
NewsArchive
03-05-2008, 02:40 AM
> Thanks! In the mean time I have a work around that should do what I
> need.
>
> By the way, the File Version does show correctly on the File Property
> tab but suspect that it is coming from an internal stored numeric
> values (leading zeros are stripped). In the case that I looked at the
> version was "19.0.803.41".
The "File Version" (at the top of the Windows File Properties dialog) is
used to compare files versions and is a LONG. That's why it does show
correctly.
The other "File Version" and "Product Version" resources are a 10 byte
STRING. I think this 10 byte is a SetupBuilder limit, not a Windows limit.
Thanks,
Friedrich
NewsArchive
03-05-2008, 02:41 AM
"File Version" and "Product Version" resources increased to 20 bytes in our
latest internal source codes now (see attached screenshot).
Thanks,
Friedrich
NewsArchive
03-05-2008, 02:42 AM
Thanks!
Barton Whisler
Prosoft Inc.
Tampa, Florida
NewsArchive
03-09-2008, 04:17 AM
Friedrich,
Sorry to be a pain but it still does not appear to be correct with the
version that I have. I download a Setup Builder update Saturday
morning and the "Product Version" does appear correct on the File
Proprieties; Version tab where before it did not. However when I use
Microsoft API calls to retrieve the information, it is still being
clipped at 10 characters. Using the same call (it is in one of my
general classes) on an executable generated by Clarion, it properly
returns the longer version string.
Perhaps I am accessing the wrong file version page? The one that I am
currently using is:
LangID = '0409' ! English
CodePageID = '04b0' ! Unicode
Should I be using a different one or what else can I look for?
Thanks in advance!
Barton
NewsArchive
03-10-2008, 02:46 AM
Hi Barton
Hmm, there is definitely a problem with the Product Version in the
fixed-info section of the resource. This value is stored as DWORDs and is
always "6 , 7, 0, 1" (10 bytes). The SetupBuilder compiler does not to
update the Product Version in the fixed-info section, only the Product
Version string parameter.
Item in review.
Friedrich
NewsArchive
03-10-2008, 02:46 AM
Hi Barton,
Okay, I found out that all previous SetupBuilder versions (5 and 6) set the
fixed-info section of the resource for ProductVersion to the SetupBuilder
compiler version.
In SetupBuilder 6.7, we introduced the customizable ProductVersion string
item, but this does not set the ProductVersion stored as DWORD values.
We'll change this in the next build.
If you need a temporary workaround, let me know and I'll send you a new
compiler component.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
03-10-2008, 02:47 AM
Hi Friedrich,
Thanks for confirming I was not going crazy<g>. I have a work around
that is working for now, so no need to have an update at this time.
Barton
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.