Adding Windows Version Info

From FM Plugin Wikipedia
Revision as of 21:09, 11 July 2007 by Admin (talk | contribs) (New page: By default, the FM 7 API doesn't add the 'Version' information to the compiled plugin on windows. You can include this by copying from the FM5.5 API the Version Info. Add the following ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

By default, the FM 7 API doesn't add the 'Version' information to the compiled plugin on windows. You can include this by copying from the FM5.5 API the Version Info.


Add the following lines into the 'FMPluginExample.rc' file on windows. I put it just before the first 'STRINGTABLE'

Replace the 1,0,1,0 and 1.01 with your current version info.

Replace 'IDMA' with your product name.

I was unable to remove any of the 'VALUE' lines without breaking the version functionality. I suspect it's tied to the BLOCK line, but didn't investigate further.


1 VERSIONINFO
 FILEVERSION 1,0,1,0
 PRODUCTVERSION 5,5,3,0
 FILEFLAGSMASK 0x3fL
 FILEFLAGS 0x20L
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
   BLOCK "StringFileInfo"
   BEGIN
       BLOCK "040904e4"
       BEGIN
           VALUE "CompanyName", "IDMA.\0"
           VALUE "FileDescription", "IDMA Plug-in\0"
           VALUE "FileVersion", "1.01 14/07/07\0"
           VALUE "InternalName", "IDMA_Plugin\0"
           VALUE "LegalCopyright", "© IDMA, 2007\0"
           VALUE "OriginalFilename", "IDMA_Plugin.fmx\0"
           VALUE "ProductName", "IDMA Plugin\0"
           VALUE "ProductVersion", "1.01 14/07/2007\0"
           VALUE "SpecialBuild", "<20050714>\0"
       END
   END
   BLOCK "VarFileInfo"
   BEGIN
       VALUE "Translation", 0x409, 1252
   END
END