From fe6a9a186b578b15684938dafdc22974ef5b0c42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=86=B0=E7=B3=96XH?=
<76904365+bingtangxh@users.noreply.github.com>
Date: Thu, 26 Mar 2026 14:46:26 +0800
Subject: [PATCH] Enable ARM desktop SDK macro in projects
Add _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE=1 to PreprocessorDefinitions in multiple .vcxproj files so ARM desktop SDK partition is available at project level. Remove per-file #ifdef _M_ARM defines from several headers and source files (Stdafx.h, targetver.h, main.cpp across various modules) to avoid duplication. Also add ShowIncludes=false in pkgread.vcxproj. This centralizes the ARM macro for consistent ARM builds across modules.
---
IEHelper/IEHelper.vcxproj | 4 ++--
IEHelper/Stdafx.h | 4 ----
README.md | 2 +-
appinstaller/appinstaller.vcxproj | 4 ++--
appinstaller/main.cpp | 4 ----
certmgr/certmgr.vcxproj | 4 ++--
certmgr/stdafx.h | 3 ---
desktopini/desktopini.vcxproj | 4 ++--
desktopini/main.cpp | 4 ----
notice/notice.vcxproj | 4 ++--
notice/targetver.h | 4 ----
pkgmgr/pkgmgr.vcxproj | 4 ++--
pkgmgr/targetver.h | 4 ----
pkgread/pkgread.vcxproj | 5 +++--
pkgread/targetver.h | 4 ----
priformatcli/priformatcli.vcxproj | 4 ++--
priformatcli/targetver.h | 4 ----
reslib/reslib.vcxproj | 4 ++--
reslib/targetver.h | 4 ----
settings/main.cpp | 4 ----
settings/settings.vcxproj | 4 ++--
shortcut/main.cpp | 5 -----
shortcut/shortcut.vcxproj | 4 ++--
23 files changed, 24 insertions(+), 67 deletions(-)
diff --git a/IEHelper/IEHelper.vcxproj b/IEHelper/IEHelper.vcxproj
index 16ebf92..db781ed 100644
--- a/IEHelper/IEHelper.vcxproj
+++ b/IEHelper/IEHelper.vcxproj
@@ -133,7 +133,7 @@
Level3Disabled
- WIN32;_DEBUG;%(PreprocessorDefinitions)
+ WIN32;_DEBUG;%(PreprocessorDefinitions);_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE=1Use
@@ -165,7 +165,7 @@
Level3
- WIN32;NDEBUG;%(PreprocessorDefinitions)
+ WIN32;NDEBUG;%(PreprocessorDefinitions);_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE=1Use
diff --git a/IEHelper/Stdafx.h b/IEHelper/Stdafx.h
index 950f8a2..9aff0fd 100644
--- a/IEHelper/Stdafx.h
+++ b/IEHelper/Stdafx.h
@@ -4,10 +4,6 @@
#pragma once
-#ifdef _M_ARM
-#define _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE 1
-#endif
-
#include
#include
#include
\ No newline at end of file
diff --git a/README.md b/README.md
index 2082711..4d60f76 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
Note: There is no official release yet, but the test version still does not have the Pre-released label; this is for testing upgrade functionality. Once the official release is complete, previous versions will be marked as Pre-released.
Attention
-
This program is an x86 program, not an ARM application, not cross-platform, and cannot be used on Windows RT.
+
This program is an x86 program, not an ARM application, not cross-platform, and cannot be used on Windows RT.
This program uses some third-party libraries and other Github projects, and is completed using AI (ChatGTP). This project can be used for learning and communication purposes.
(Important) Internet Explorer must support TLS 1.2 (requiring the use of IE's XMLHttpRequest to retrieve update information), especially IE10. You can do this by opening the "Advanced" tab in Control Panel/Internet Explorer's "Internet Options," finding "Use TLS 1.2" and checking the box, then clicking "OK" and saving. The settings will take effect the next time you open the browser.