OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------
------------------- |
| 2 // <copyright file="wix.rc" company="Outercurve Foundation"> |
| 3 // Copyright (c) 2004, Outercurve Foundation. |
| 4 // This software is released under Microsoft Reciprocal License (MS-RL). |
| 5 // The license and further copyright text can be found in the file |
| 6 // LICENSE.TXT at the root directory of the distribution. |
| 7 // </copyright> |
| 8 // |
| 9 // <summary> |
| 10 // Common resource file for any native wix resources. |
| 11 // </summary> |
| 12 // <remarks> |
| 13 // Usage: |
| 14 // #define VER_APP (VER_DLL, VER_TYPELIB, none) |
| 15 // #define VER_LANG_NEUTRAL (optional) |
| 16 // #define VER_ORIGINAL_FILENAME "FooBar.Exe" |
| 17 // #define VER_INTERNAL_NAME "FooBar" |
| 18 // #define VER_PRODUCT_NAME |
| 19 // #define VER_FILE_DESCRIPTION |
| 20 // #include "wix.rc" |
| 21 // |
| 22 // Optional to add before the #include (must add as a group and VER_BLOCK must m
atch to VER_LANG and VER_CP) |
| 23 // You should not have to do this except for some extreme cases. |
| 24 // #define VER_LANG 0x0000 |
| 25 // #define VER_CP 0x04E4 |
| 26 // #define VER_BLOCK "000004E4" |
| 27 // </remarks> |
| 28 //------------------------------------------------------------------------------
------------------- |
| 29 |
| 30 #include <winver.h> |
| 31 #include <windows.h> |
| 32 #include "wixver.h" |
| 33 #include "WixDistribution.h" |
| 34 |
| 35 #ifdef DEBUG |
| 36 #define VER_DEBUG VS_FF_DEBUG |
| 37 #define VER_PRIVATE_BUILD VS_FF_PRIVATEBUILD |
| 38 #define VER_PRE_RELEASE (VS_FF_PRERELEASE | VS_FF_SPECIALBUILD) |
| 39 #else |
| 40 #define VER_DEBUG 0 |
| 41 #define VER_PRIVATE_BUILD 0 |
| 42 #define VER_PRE_RELEASE 0 |
| 43 #endif |
| 44 |
| 45 #if defined(VER_APP) |
| 46 #define VER_FILE_TYPE VFT_APP |
| 47 #elif defined(VER_DLL) |
| 48 #define VER_FILE_TYPE VFT_DLL |
| 49 #elif defined(VER_TYPELIB) |
| 50 #define VER_FILE_TYPE VFT_UNKNOWN |
| 51 #else |
| 52 #define VER_FILE_TYPE VFT_UNKNOWN |
| 53 #endif |
| 54 |
| 55 #if defined(VER_LANG_NEUTRAL) |
| 56 #ifndef VER_LANG |
| 57 #define VER_LANG 0x0000 |
| 58 #endif |
| 59 #ifndef VER_CP |
| 60 #define VER_CP 0x04E4 |
| 61 #endif |
| 62 #ifndef VER_BLOCK |
| 63 #define VER_BLOCK "000004E4" |
| 64 #endif |
| 65 #else |
| 66 #ifndef VER_LANG |
| 67 #define VER_LANG 0x0409 |
| 68 #endif |
| 69 #ifndef VER_CP |
| 70 #define VER_CP 0x04E4 |
| 71 #endif |
| 72 #ifndef VER_BLOCK |
| 73 #define VER_BLOCK "040904E4" |
| 74 #endif |
| 75 #endif |
| 76 |
| 77 #define VER_FILE_VERSION rmj, rmm, rup, 0 |
| 78 #define VER_PRODUCT_VERSION rmj, rmm, rup, 0 |
| 79 #define VER_FILE_VERSION_STRING szVerMajorMinorBuild |
| 80 #define VER_PRODUCT_VERSION_STRING VER_FILE_VERSION_STRING |
| 81 #define VER_FILE_FLAGS_MASK VS_FFI_FILEFLAGSMASK |
| 82 #define VER_FILE_FLAGS (VER_DEBUG | VER_PRIVATE_BUILD | VER_PRE_RE
LEASE) |
| 83 |
| 84 #define VER_FILE_OS VOS__WINDOWS32 |
| 85 |
| 86 #define VER_COMPANY_NAME "Outercurve Foundation" |
| 87 #ifndef VER_PRODUCT_NAME |
| 88 #define VER_PRODUCT_NAME "Windows Installer XML (WiX)" |
| 89 #endif |
| 90 #ifndef VER_FILE_DESCRIPTION |
| 91 #define VER_FILE_DESCRIPTION "Windows Installer XML (WiX) component" |
| 92 #endif |
| 93 |
| 94 #if defined(VER_LEGAL_COPYRIGHT) |
| 95 #error |
| 96 #endif |
| 97 #define VER_LEGAL_COPYRIGHT "Copyright (c) Outercurve Foundation.\240 A
ll rights reserved." |
| 98 |
| 99 #if !defined(VER_FILE_SUBTYPE) |
| 100 #define VER_FILE_SUBTYPE 0 |
| 101 #endif |
| 102 |
| 103 #ifdef RC_INVOKED |
| 104 |
| 105 VS_VERSION_INFO VERSIONINFO |
| 106 FILEVERSION VER_FILE_VERSION |
| 107 PRODUCTVERSION VER_PRODUCT_VERSION |
| 108 FILEFLAGSMASK VER_FILE_FLAGS_MASK |
| 109 FILEFLAGS VER_FILE_FLAGS |
| 110 FILEOS VER_FILE_OS |
| 111 FILETYPE VER_FILE_TYPE |
| 112 FILESUBTYPE VER_FILE_SUBTYPE |
| 113 BEGIN |
| 114 BLOCK "StringFileInfo" |
| 115 BEGIN |
| 116 BLOCK VER_BLOCK |
| 117 BEGIN |
| 118 VALUE "CompanyName", VER_COMPANY_NAME |
| 119 VALUE "FileDescription", VER_FILE_DESCRIPTION |
| 120 VALUE "FileVersion", VER_FILE_VERSION_STRING |
| 121 VALUE "InternalName", VER_INTERNAL_NAME |
| 122 |
| 123 VALUE "LegalCopyright", VER_LEGAL_COPYRIGHT |
| 124 |
| 125 VALUE "OriginalFilename", VER_ORIGINAL_FILENAME |
| 126 VALUE "ProductName", VER_PRODUCT_NAME |
| 127 VALUE "ProductVersion", VER_FILE_VERSION_STRING |
| 128 #if defined(DEBUG) |
| 129 VALUE "WiX Common Resource Format", "Debug Only" |
| 130 #endif |
| 131 END |
| 132 END |
| 133 |
| 134 BLOCK "VarFileInfo" |
| 135 BEGIN |
| 136 VALUE "Translation", VER_LANG, VER_CP |
| 137 END |
| 138 END |
| 139 |
| 140 #endif |
OLD | NEW |