Version Information¶
Every module DLL has version information, which is what Windows shows on the Details tab of a file's properties. You can choose what it says, or leave it to autoplay2c.
Your Own Information¶
In the application, turn on Give the DLL this version information on the
Version page and fill in the fields. In a project file, these
are the VersionInformation settings (see Project Files).
| Field | Shown as |
|---|---|
| File version | Four numbers, such as 1.2.0.15 |
| Product version | Four numbers |
| Company | Company name |
| Description | File description |
| Copyright | Copyright |
| Trademarks | Legal trademarks |
| Product name | Product name |
| Comments | Comments |
| Private build, Special build | Rarely used, but shown by some tools |
Fields you leave empty are left out of the DLL.
By default, the internal name and the original file name are the DLL's file name. To set them yourself, also turn on Set the internal name and original file name and fill in Internal name and Original file name.
From the Project¶
An AutoPlay project has version information of its own, which AutoPlay Media Studio gives the program it publishes. The DLL can have the same.
In the application, click Copy from the project on the Version page. It fills in the fields and turns on Give the DLL this version information; you can change the fields after. The internal name and the original file name stay as they were, since in the project they name the program and not the DLL. If the fields already hold version information of your own, the application asks first, and Keep leaves them as they are.
On the command line, --version-from-project does the same for one build, without changing the
project file:
Add --save-version to also write it into the project file, once the build succeeds, as Copy
from the project and saving would. It needs a project file to build:
When the project file you build already has version information filled in, and the project's
differs from it, a2c asks before replacing it:
MyProject.autoplay2c has version information filled in. Replace it with MyProject.autoplay's for this build? [y/N]
Answer y to go on; anything else cancels the build. -y (--yes) answers yes without asking.
Where nobody can answer, in a script or with --message-format json, the build fails instead and
says to give --yes.
On the Command Line¶
These options of a2c build set single values. They apply over the
version information of the project file you build, or over the project's with
--version-from-project. Without either, they apply over empty information, not over the default
below, so the DLL doesn't say it's the "A2C Runtime" with your version number.
| Option | Sets |
|---|---|
--file-version |
The file version: one to four numbers, such as 2.1 or 2.1.0.15; the parts left out are 0 |
--product-version |
The product version, the same way |
--version-string |
A text field, as Name=Value. Repeat it for more fields. An empty value leaves the field out. |
The names --version-string takes are those Windows shows: CompanyName, ProductName,
FileDescription, LegalCopyright, LegalTrademarks, Comments, PrivateBuild, SpecialBuild,
InternalName and OriginalFilename. A name of your own is kept too, though Windows doesn't show
it.
a2c build tools.lua -t ams9 --file-version 2.1 --version-string "ProductName=My Tools" --version-string "CompanyName=Acme"
The Default¶
Without your own information, the DLL says it's the "A2C Runtime" by Imagine Programming, with the version of autoplay2c that built it, and it has its own file name as its internal and original name.