summaryrefslogtreecommitdiff
path: root/resource.rc
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
commitd6301fca6b78db52d0d98f8e0799aba175ad2e59 (patch)
tree0380aac034e0d70ee058db07900d80ff20cfc81e /resource.rc
parent5.7 (diff)
downloadFreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.gz
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.bz2
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.zip
5.8
Diffstat (limited to 'resource.rc')
-rw-r--r--resource.rc34
1 files changed, 23 insertions, 11 deletions
diff --git a/resource.rc b/resource.rc
index e4675de4..bf62d7b2 100644
--- a/resource.rc
+++ b/resource.rc
@@ -3,21 +3,33 @@
#include <Winver.h>
#include "version/version.rc"
-//beginning with VC11 we get linking error "CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409"
-//due to "#define wxMANIFEST_ID 1" in wx.rc. Using another number doesn't integrate the manifest correctly for VC2010 compilers.
-//However tests indicate we do not need this manifest at all:
-//#define wxUSE_NO_MANIFEST 1 //VC11 screws up if not set to an integer, unbelievable
-//we can't #ifdef _MSC_VER: not known by resource compiler!
-//see also: http://blog.m-ri.de/index.php/2010/11/26/combobox-dropdown-hoehe-wird-nicht-mehr-durch-die-ressourcen-definiert/
+#define wxUSE_NO_MANIFEST 1 //lame resource compiler requires us to define an integer here
#include <wx/msw/wx.rc>
+/*
+Reasons to NOT use the wxWidgets manifest file:
+ 1. beginning with VC11 we get linking error "CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409"
+ due to "#define wxMANIFEST_ID 1" in wx.rc. Using another number doesn't integrate the manifest correctly for VC2010 compilers.
+ 2. it is missing the "requestedExecutionLevel" element. Consequently UAC virtualization will be active for a 32 bit executable started in user mode
+*/
+
+//MSDN on manifests: http://msdn.microsoft.com/en-us/library/bb756929.aspx
+#define MANIFEST_RESOURCE_ID 1
+#if defined(WX_CPU_AMD64) //check for 64 bit *first*
+MANIFEST_RESOURCE_ID RT_MANIFEST "amd64.manifest"
+#elif defined(WX_CPU_X86)
+MANIFEST_RESOURCE_ID RT_MANIFEST "win32.manifest"
+#else
+#error What is going on?
+#endif
+
A_PROGRAM_ICON ICON DISCARDABLE "lib/FreeFileSync.ico"
B_BATCH_ICON ICON DISCARDABLE "lib/Batch.ico"
C_SYNC_DB_ICON ICON DISCARDABLE "lib/SyncDB.ico"
IDR_VERSION1 VERSIONINFO
-FILEVERSION VER_FREEFILESYNC
-PRODUCTVERSION VER_FREEFILESYNC
+FILEVERSION FREEFILESYNC_VER
+PRODUCTVERSION FREEFILESYNC_VER
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
BEGIN
@@ -26,10 +38,10 @@ BEGIN
BLOCK "FFFF04B0"
BEGIN
VALUE "FileDescription", "Folder Comparison and Synchronization\0"
- VALUE "FileVersion", VER_FREEFILESYNC_STR
+ VALUE "FileVersion", FREEFILESYNC_VER_STR
VALUE "ProductName", "FreeFileSync\0"
- VALUE "ProductVersion", VER_FREEFILESYNC_STR
- VALUE "LegalCopyright", "ZenJu - All Rights Reserved\0"
+ VALUE "ProductVersion", FREEFILESYNC_VER_STR
+ VALUE "LegalCopyright", "Zenju - All Rights Reserved\0"
END
END
BLOCK "VarFileInfo"
bgstack15