Restored from previous forum. Originally posted by Joseph.
Hello all
does anybody know how to add a 'version info' resource to a purebasic compiled .EXE?
any tip/info about the above will be greatly appreciated
thanks in advance
best regards
Joseph
How to add Version info to .exe
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> I could include this directly in PureBasic editor Compiler option
> (Version, Description). What is needed in more ?
Here's a screenshot of what Visual Basic allows:
http://www.bowlay.com/version.gif
(Note: You'll probably have to paste the above directly into your
browser as my web hosts don't allow direct linking to images).
So I think it would be nice if PureBasic supported at least the three
items on the top of the screenshot (version, description, copyright).
The bottom items are not really so important, but if they're easy to
implement then go ahead and support them as well.
PB - Registered PureBasic Coder
> I could include this directly in PureBasic editor Compiler option
> (Version, Description). What is needed in more ?
Here's a screenshot of what Visual Basic allows:
http://www.bowlay.com/version.gif
(Note: You'll probably have to paste the above directly into your
browser as my web hosts don't allow direct linking to images).
So I think it would be nice if PureBasic supported at least the three
items on the top of the screenshot (version, description, copyright).
The bottom items are not really so important, but if they're easy to
implement then go ahead and support them as well.
PB - Registered PureBasic Coder
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Joseph.
Thanks all for the quick replies
you know, it would give to the final EXE a kind of 'professional' touch,
Here is a complete version info resource file example, of course i agree with PB that having the chance to edit (hopefully by means of a listview/listbox dialog box) even a small subset would be excellent
1 VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEOS 0x4
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
BLOCK "0C0904E4"
{
VALUE "CompanyName", "MyCompany"
VALUE "FileDescription", "My Product, an amazing do-nothing tool
"
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "MyProduct"
VALUE "LegalCopyright", "(c) MyCompany 1999-2002"
VALUE "LegalTrademarks", "call for a quote
"
VALUE "OriginalFilename", "MyProd"
VALUE "ProductName", "Little Puppy"
VALUE "ProductVersion", "1.0.0.1"
VALUE "Comments", "Shareware."
VALUE "Additional Notes", "Not for distribution w/o the authors permission"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0C09 0x04E4
}
}
Thanks again
best regards
Joseph
Registered PureBasic User
Thanks all for the quick replies
Fred that would be WONDERFUL!Originally posted by fred
I could include this directly in PureBasic editor Compiler option(Version, Description). What is needed in more ?
Fred - AlphaSND
you know, it would give to the final EXE a kind of 'professional' touch,
Here is a complete version info resource file example, of course i agree with PB that having the chance to edit (hopefully by means of a listview/listbox dialog box) even a small subset would be excellent
1 VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEOS 0x4
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
BLOCK "0C0904E4"
{
VALUE "CompanyName", "MyCompany"
VALUE "FileDescription", "My Product, an amazing do-nothing tool
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "MyProduct"
VALUE "LegalCopyright", "(c) MyCompany 1999-2002"
VALUE "LegalTrademarks", "call for a quote
VALUE "OriginalFilename", "MyProd"
VALUE "ProductName", "Little Puppy"
VALUE "ProductVersion", "1.0.0.1"
VALUE "Comments", "Shareware."
VALUE "Additional Notes", "Not for distribution w/o the authors permission"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0C09 0x04E4
}
}
Thanks again
best regards
Joseph
Registered PureBasic User