From 678ac501ad11fb2f7ddc49e223504a8707d2072e Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Tue, 18 Sep 2012 22:37:35 +0300 Subject: [PATCH] Added Windows 7/8 compatibility section to manifest http://msdn.microsoft.com/en-us/library/windows/desktop/hh848036.aspx --- Application/Application.cpp | 10 ---------- Application/Application.manifest | 13 +++++++++++++ Application/Application.vcxproj | 12 ++++++++++++ SkinInstaller/Application.h | 6 ------ SkinInstaller/SkinInstaller.vcxproj | 12 ++++++++++++ 5 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 Application/Application.manifest diff --git a/Application/Application.cpp b/Application/Application.cpp index 5060e287..574877bd 100644 --- a/Application/Application.cpp +++ b/Application/Application.cpp @@ -23,16 +23,6 @@ #include #include "../Library/Rainmeter.h" -#if defined _M_IX86 -#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") -#elif defined _M_IA64 -#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") -#elif defined _M_X64 -#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") -#else -#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") -#endif - /* ** Entry point. ** diff --git a/Application/Application.manifest b/Application/Application.manifest new file mode 100644 index 00000000..45f90406 --- /dev/null +++ b/Application/Application.manifest @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/Application/Application.vcxproj b/Application/Application.vcxproj index 1ce6e366..eba9ac40 100644 --- a/Application/Application.vcxproj +++ b/Application/Application.vcxproj @@ -109,6 +109,9 @@ xcopy /Q /S /Y ..\Build\Skins ..\testbench\x32\debug\skins xcopy /Q /S /Y ..\Build\Themes ..\testbench\x32\debug\themes :skip + + Application.manifest + @@ -144,6 +147,9 @@ xcopy /Q /S /Y ..\Build\Skins ..\testbench\x64\debug\skins xcopy /Q /S /Y ..\Build\Themes ..\testbench\x64\debug\themes :skip + + Application.manifest + @@ -183,6 +189,9 @@ xcopy /Q /S /Y ..\Build\Skins ..\testbench\x32\release\skins xcopy /Q /S /Y ..\Build\Themes ..\testbench\x32\release\themes :skip + + Application.manifest + @@ -220,6 +229,9 @@ xcopy /Q /S /Y ..\Build\Skins ..\testbench\x64\release\skins xcopy /Q /S /Y ..\Build\Themes ..\testbench\x64\release\themes :skip + + Application.manifest + diff --git a/SkinInstaller/Application.h b/SkinInstaller/Application.h index c4b30376..d07e9e72 100644 --- a/SkinInstaller/Application.h +++ b/SkinInstaller/Application.h @@ -23,12 +23,6 @@ #include "zip.h" #include "unzip.h" -#if defined _M_IX86 -#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") -#elif defined _M_X64 -#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") -#endif - #define MAX_LINE_LENGTH 4096 #define MB_ERROR MB_OK | MB_TOPMOST | MB_ICONERROR diff --git a/SkinInstaller/SkinInstaller.vcxproj b/SkinInstaller/SkinInstaller.vcxproj index 2818c971..6a5c6906 100644 --- a/SkinInstaller/SkinInstaller.vcxproj +++ b/SkinInstaller/SkinInstaller.vcxproj @@ -105,6 +105,9 @@ $(IntDir)\$(MSBuildProjectName).log + + ..\Application\Application.manifest + @@ -140,6 +143,9 @@ $(IntDir)\$(MSBuildProjectName).log + + ..\Application\Application.manifest + @@ -174,6 +180,9 @@ $(IntDir)SkinInstaller.bsc + + ..\Application\Application.manifest + @@ -206,6 +215,9 @@ $(IntDir)SkinInstaller.bsc + + ..\Application\Application.manifest +