Wish B4JPackager

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hello

The built in packager is an awesome tool. I would however request that we be able to set the EXE file properties such as file version etc.

I currently can set #PackagerProperty: IconFile = ..\Files\icon.ico, so would it be difficult to do #PackagerProperty: FileVersion = 1.0.0.1

The complete list of properties :
CompanyName
FileDescription
FileVersion
LegalCopyright
OriginalFilename
ProductName
ProductVersion

Regards (fingers crossed)

John.
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Will be included in the next beta:
B4X:
#PackagerProperty: AssemblyTitle = This is the title
#PackagerProperty: AssemblyDescription = Description
#PackagerProperty: AssemblyCompany = Cool company
#PackagerProperty: AssemblyProduct = Cool product
#PackagerProperty: AssemblyVersion = 1.2.3.0

And:
B4X:
#PackagerProperty: RequireAdministrator = True
 

Dadaista

Active Member
Licensed User
Longtime User
What are the correspondences in inno?

B4X:
#PackagerProperty: AssemblyTitle = This is the title    'inno: ???????
#PackagerProperty: AssemblyDescription = Description    'inno: VersionInfoDescription?
#PackagerProperty: AssemblyCompany = Cool company       'inno: AppCopyright? -- AppPublisher?
#PackagerProperty: AssemblyProduct = Cool product       'inno: AppName?
#PackagerProperty: AssemblyVersion = 1.2.3.0            'inno: AppVersion? -- VersionInfoVersion?
#PackagerProperty: RequireAdministrator = True          'inno: ????
 

Chris2

Active Member
Licensed User
Longtime User
Will be included in the next beta:
B4X:
#PackagerProperty: AssemblyTitle = This is the title
#PackagerProperty: AssemblyDescription = Description
#PackagerProperty: AssemblyCompany = Cool company
#PackagerProperty: AssemblyProduct = Cool product
#PackagerProperty: AssemblyVersion = 1.2.3.0

And:
B4X:
#PackagerProperty: RequireAdministrator = True
Two questions:
1. Any reason not to allow setting the text of the Copyright notice as well?
2. Will these be applied to the exe in the ...\Build\ folder, the one in the ...Build\Bin\ folder, or both?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Any reason not to allow setting the text of the Copyright notice as well?
You can pass all of the .Net fields: https://learn.microsoft.com/en-us/dotnet/standard/assembly/set-attributes
B4X:
#PackagerProperty: AssemblyCopyrightAttribute = Copyright string
As long as it starts with Assembly, it will be added as an assembly attribute.

Will these be applied to the exe in the ...\Build\ folder, the one in the ...Build\Bin\ folder, or both?
Only to the one in the Build folder.
 
Top