From c0b9aed8f979f8a57ac6762c71db66572f078305 Mon Sep 17 00:00:00 2001 From: zeffy Date: Fri, 6 Oct 2017 23:21:56 -0700 Subject: [PATCH] update readme --- README.md | 8 ++++++++ setup-batch/setup_wufuc.bat | 7 ++++--- wufuc.sln | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 421bae4..361069c 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,14 @@ If you are interested, you can read my original write up on discovering the CPU - `/UNATTENDED` - skips all prompts for user interaction. **Beware: this will automatically restart your computer after setup is complete, unless combined with `/NORESTART`.** - `/UNINSTALL` - skips the prompt that asks if you want to install or uninstall. +These also change the default behavior of the script by changing these lines near the top of the script: + +```bat +call :set_uninstall 0 +call :set_unattended 0 +call :set_norestart 0 +``` + ## How it works Basically, inside a system file called `wuaueng.dll` there are two functions responsible for the CPU check: `IsDeviceServiceable(void)` and `IsCPUSupported(void)`. diff --git a/setup-batch/setup_wufuc.bat b/setup-batch/setup_wufuc.bat index 8923676..6444b40 100644 --- a/setup-batch/setup_wufuc.bat +++ b/setup-batch/setup_wufuc.bat @@ -15,6 +15,10 @@ title wufuc installer :: You should have received a copy of the GNU General Public License :: along with this program. If not, see . +call :set_uninstall 0 +call :set_unattended 0 +call :set_norestart 0 + echo Copyright ^(C^) 2017 zeffy echo This program comes with ABSOLUTELY NO WARRANTY. echo This is free software, and you are welcome to redistribute it @@ -26,9 +30,6 @@ fltmc >nul 2>&1 || ( echo %~nx0 and select "Run as administrator". goto :die ) -call :set_uninstall 0 -call :set_unattended 0 -call :set_norestart 0 :loop_args if [%1]==[] goto :check_requirements diff --git a/wufuc.sln b/wufuc.sln index 366577a..9ebb027 100644 --- a/wufuc.sln +++ b/wufuc.sln @@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution CONTRIBUTING.md = CONTRIBUTING.md LICENSE = LICENSE README.md = README.md + setup-batch\setup_wufuc.bat = setup-batch\setup_wufuc.bat EndProjectSection EndProject Global