;Переменные, читаемые из инсталируемой программы#define CompanyName GetStringFileInfo(AppFileNameExe, "CompanyName")#define FileDescription GetStringFileInfo(AppFileNameExe, "FileDescription") #define FileVersion GetStringFileInfo(AppFileNameExe, "FileVersion")#define LegalCopyright GetStringFileInfo(AppFileNameExe, "LegalCopyright")#define ProductName GetStringFileInfo(AppFileNameExe, "ProductName")#define OriginalFilename GetStringFileInfo(AppFileNameExe, "OriginalFilename")
VERSION = 1.0.8QMAKE_TARGET_COMPANY = ***QMAKE_TARGET_DESCRIPTION = ***QMAKE_TARGET_PRODUCT = ***QMAKE_TARGET_COPYRIGHT = ***
IDI_ICON1 ICON DISCARDABLE "logo.ico"#include <windows.h>#define VER_FILEVERSION 1,2,3,4VS_VERSION_INFO VERSIONINFOFILEVERSION VER_FILEVERSIONPRODUCTVERSION VER_FILEVERSIONFILEFLAGSMASK 0x17LBEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "CompanyName", "VER_COMPANYNAME_STR" VALUE "FileVersion", "5.2.3.4" VALUE "ProductVersion", "6.2.3.4" VALUE "InternalName", "D3WindowDBManager" VALUE "LegalCopyright", "Copyright (C) kambala 2013" VALUE "OriginalFilename", "D3WindowDBManager.exe" VALUE "ProductName", "D3WindowDBManager" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0, 1251 ENDEND
...#define AppFileName "D3WindowDBManager"#define AppFileNameExe AppFileName + ".exe"#define FileVersion GetStringFileInfo(AppFileNameExe, "FileVersion");Название файла инсталятора#define OutputBaseFileName "setup_"+FileVersion...[Setup]OutputBaseFileName={#OutputBaseFileName}...