Project

General

Profile

Actions

Feature #6

closed

Version and Copyright in properties of BlackBox setup file and BlackBox.exe

Added by I. Denisov over 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
07/11/2014
Due date:
% Done:

100%

Estimated time:

Description

Chris Burrows wrote:

The properties of the BlackBox setup file are mostly OK except for the missing copyright notice and file version.
However, the BlackBox exe has no proper identification at all

http://forum.blackboxframework.org/viewtopic.php?f=33&t=99#p905

Actions #1

Updated by I. Denisov over 11 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 70

The file version and copyright can be fixes by adding this lines to BlackBox.iss

VersionInfoVersion=1.7.0.1
AppCopyright=Copyright (c) 1994 - 2013 Oberon microsystems, Inc., Switzerland. All rights reserved.

Am I right with copyright?

1.7.0.1 means 1.7-alpha1

Actions #2

Updated by I. Denisov over 11 years ago

Actions #3

Updated by I. Denisov over 11 years ago

  • Subject changed from Version and Copyright in properties of BlackBox setup file to Version and Copyright in properties of BlackBox setup file and BlackBox.exe
  • Description updated (diff)
  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 80

Chris Burrows wrote:

As far as I know version information is associated with a Win32 application using a Win32 resource file. Usually development systems (e.g. Visual Studio, Delphi etc.) do this as part of the build process. The BlackBox DevLinker documentation states

... windows resource files (.res), and type libraries (.tlb) are supported. The resource files are loaded from the Rsrc or Win/Rsrc directory.

so I believe the process for BlackBox would be:

1. Enter the version information into a text .rc file (e.g. BlackBox.rc) in the BlackBox Rsrc folder.
2. Use a resource compiler to compile the .rc file into a .res file (e.g. BlackBox.res).
3. Include BlackBox.res in the list of items on the normal BlackBox DevLinker.Link command line

I tried to use this rc code and it works. The .res file should go first in DevLinker resources sequence.

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,7,0,1
PRODUCTVERSION 1,7,0,1
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x8L
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo" 
BEGIN
BLOCK "040904b0" 
BEGIN
VALUE "Comments", "\0" 
VALUE "CompanyName", "BlackBox Framework Center\0" 
VALUE "FileDescription", "BlackBox Component Builder\0" 
VALUE "FileVersion", "1,7,0,1\0" 
VALUE "InternalName", "BlackBox Component Builder\0" 
VALUE "LegalCopyright", "Copyright © 1994 - 2013 Oberon microsystems, Inc., Switzerland. All rights reserved.\0" 
VALUE "LegalTrademarks", "\0" 
VALUE "OriginalFilename", "BlackBox.exe\0" 
VALUE "PrivateBuild", "1\0" 
VALUE "ProductName", "BlackBox Component Builder\0" 
VALUE "ProductVersion", "1, 7, 0, 1\0" 
VALUE "SpecialBuild", "\0" 
END
END
BLOCK "VarFileInfo" 
BEGIN
VALUE "Translation", 0x409, 1200
END
END

I compiled it this wingw32 compiler on Ubuntu, so it will also work on Debian (our VPS).

sudo apt-get install wingw32
/usr/bin/i586-mingw32msvc-windres -i BlackBox.rc -o BlackBox.res

In windows I compiled this file with next command:

C:\MinGW\bin>windres.exe -i C:\Users\Ivan\Desktop\bbcb\Win\Rsrc\BlackBox.rc -o C:\Users\Ivan\Desktop\bbcb\Win\Rsrc\BlackBox.res

Actions #4

Updated by I. Denisov over 11 years ago

  • % Done changed from 80 to 100

commit:f6f879b0f25630e16f1ca5785838655208906cdd

Actions #5

Updated by I. Denisov over 11 years ago

  • Status changed from Resolved to Closed

two updates
commit:dddda6624b40589cbcc909b07a3068b19c848b6f
commit:336b9b6bf589355667a00134271363630603bdb4

The mechanism of changing version and other properties are clear now. Other changes will be details. So this issue can be closed.

Actions #6

Updated by I. Denisov over 9 years ago

  • Project changed from 1 to BlackBox Component Builder
  • Tracker changed from 3 to Feature
Actions

Also available in: Atom PDF