migrate to advanced installer!
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -251,5 +251,6 @@ paket-files/
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# MSI
|
||||
SetupWufuc/msi/
|
||||
# Advanced Installer
|
||||
**/*-cache/
|
||||
**/*-SetupFiles/
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#### Avant de créer un ticket d'issue, veuillez vous assurer d'avoir vérifié les points suivants :
|
||||
|
||||
- Utilisez-vous bien la [dernière version stable](../../releases/latest)?
|
||||
- Si vous avez utilisé l'une des versions < 0.6, avez-vous restauré l'état initial du système en exécutant `repair_wuaueng.dll.bat` ?
|
||||
- Avez-vous essayé de redémarrer l'ordinateur ?
|
||||
|
||||
#### Après avoir confirmé ces éléments, veuillez créer un ticket en incluant les informations suivantes :
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#### Before you create an issue, please make sure of the following:
|
||||
|
||||
- Are you using at least the [latest stable version](../../releases/latest)?
|
||||
- If you previously used any of the old batchfile patches (versions < 0.6), did you revert it by running `repair_wuaueng.dll.bat`?
|
||||
- Have you tried restarting your computer?
|
||||
|
||||
#### After you've confirmed those things, please create an issue and include the following information:
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#### Перед созданием баг-репорта убедитесь, что:
|
||||
|
||||
- Вы используете [последнюю стабильную версию](../../releases/latest);
|
||||
- Если вы пользовались предыдущей версией (.bat-патчером), убедитесь, что вы откатили его, запустив `repair_wuaueng.dll.bat`;
|
||||
- Вы пытались перезагружать компьютер.
|
||||
|
||||
#### После проверки и подтверждения вышеизложенных пунктов, создавайте баг-репорт и включите в него следующую информацию:
|
||||
|
@@ -55,23 +55,3 @@ Mon patch tire avantage de comportement à mettre en cache le résultat en assig
|
||||
- Patch avec une base heuristique, ce qui signifie que cela devrait continuer de fonctionner même si d'autres updates sortent.
|
||||
- Le langage C était le plus adapté.
|
||||
- Pas de dépendances externes.
|
||||
|
||||
## FAQ
|
||||
|
||||
### Comment installer/désinstaller ?
|
||||
|
||||
Téléchargez simplement la [dernière version](../../releases/latest), et extrayez l'archive `wufuc` dans un dossier permanent (comme par exemple `C:\Program Files\wufuc`) puis exécutez `install_wufuc.bat` en tant qu'administrateur.
|
||||
|
||||
Pour désinstaller, exécutez `uninstall_wufuc.bat` en tant qu'administrateur.
|
||||
|
||||
### Comment mettre à jour quand une nouvelle version sort ?
|
||||
|
||||
À moins que cela ne soit précisé différemment, vous devriez avoir à faire :
|
||||
|
||||
- Exécutez `uninstall_wufuc.bat` en tant qu'administrateur.
|
||||
- Copier les nouveaux fichiers dans le dossier permanent (comme par exemple `C:\Program Files\wufuc`) en écrasant les anciens fichiers.
|
||||
- Exécutez `install_wufuc.bat` en tant qu'administrateur.
|
||||
|
||||
### Comment enlever l'ancien patch des versions < 0.6 et utiliser celui-ci à la place >
|
||||
|
||||
J'ai inclus un script appelé `repair_wuaueng.dll.bat`. Quand vous l'exécutez, il va lancer une commande `sfc scan` et rétablir tous les changements effectués à `wuaueng.dll`.
|
||||
|
26
README.md
26
README.md
@@ -39,7 +39,7 @@ If you are interested, you can read my original write up on discovering the CPU
|
||||
|
||||
## How it works
|
||||
|
||||
Basically, inside a file called `wuaueng.dll` there are two functions: [`IsDeviceServiceable(void)`](https://gist.github.com/zeffy/e5ec266952932bc905eb0cbc6ed72185) and [`IsCPUSupported(void)`](https://gist.github.com/zeffy/1a8f8984d2bec97ae24af63a76278694). `IsDeviceServiceable(void)` is essentially a wrapper around `IsCPUSupported(void)` that caches the result it receives and recycles it on subsequent calls.
|
||||
Basically, inside a file called `wuaueng.dll` there are two functions: [`IsDeviceServiceable(void)`](https://gist.github.com/zeffy/e5ec266952932bc905eb0cbc6ed72185) and [`IsCPUSupported(void)`](https://gist.github.com/zeffy/1a8f8984d2bec97ae24af63a76278694). `IsDeviceServiceable(void)` is essentially a wrapper around `IsCPUSupported(void)` that caches the result it receives and recycles it on subsequent calls.
|
||||
|
||||
My patch takes advantage of this result caching behavior by setting the "first run" value to `FALSE` and the cached result to `TRUE`.
|
||||
|
||||
@@ -51,26 +51,6 @@ My patch takes advantage of this result caching behavior by setting the "first r
|
||||
### Several improvements over my batchfile method:
|
||||
|
||||
- **No system files are modified!**
|
||||
- Heuristic-based patching, which means it will usually keep working even after new updates come out.
|
||||
- C is best language.
|
||||
- Heuristic-based patching, which means it will usually keep working even after new updates come out.
|
||||
- C is best language!
|
||||
- No external dependencies.
|
||||
|
||||
## Q & A
|
||||
|
||||
### How to install/uninstall?
|
||||
|
||||
Just download the [latest release](../../releases/latest), and extract the `wufuc` folder to a permanent location (like `C:\Program Files\wufuc`) and then run `install_wufuc.bat` as administrator.
|
||||
|
||||
To uninstall run `uninstall_wufuc.bat` as administrator.
|
||||
|
||||
### How to update when a new version comes out?
|
||||
|
||||
Unless otherwise noted, you should only have to:
|
||||
|
||||
- Run `uninstall_wufuc.bat` as administrator.
|
||||
- Copy the new files into the install folder, overwriting the old ones.
|
||||
- Run the new `install_wufuc.bat` as administrator.
|
||||
|
||||
### How do I remove your old patch and use this instead?
|
||||
|
||||
I've included a utility script called `repair_wuaueng.dll.bat`. When you run it, it will initiate an `sfc` scan and revert any changes made to `wuaueng.dll`.
|
||||
|
@@ -55,23 +55,3 @@
|
||||
- Эвристический патчер - продолжит работать (я надеюсь) даже после выхода новых обновлений.
|
||||
- C - лучший язык!
|
||||
- Нет внешних зависимостей.
|
||||
|
||||
## Вопросы и ответы
|
||||
|
||||
### Как установить/удалить?
|
||||
|
||||
Просто скачайте [последний релиз](../../releases/latest), распакуйте папку `wufuc` куда-нибудь в надежное место (наподобие `C:\Program Files\wufuc`) и запустите `install_wufuc.bat` от имени Администратора.
|
||||
|
||||
Для удаления запустите `uninstall_wufuc.bat` от имени Администратора.
|
||||
|
||||
### Как обновиться на новую версию?
|
||||
|
||||
Если не указано иного, всё просто:
|
||||
|
||||
- Запустите `uninstall_wufuc.bat` от имени Администратора.
|
||||
- Скопируйте новые файлы в папку установки, перезаписывая поверх старых.
|
||||
- Запустите новый `install_wufuc.bat` от имени Администратора.
|
||||
|
||||
### Как удалить ваш старый патчер и воспользоваться этим?
|
||||
|
||||
Я включил в дистрибутив вспомогательный скрипт `repair_wuaueng.dll.bat`. Он запустит сканирование `sfc` и откатит любые изменения, сделанные в `wuaueng.dll`.
|
||||
|
@@ -20,7 +20,7 @@ before_build:
|
||||
|
||||
after_build:
|
||||
- cmd: >-
|
||||
copy /Y "wufuc\bin\%CONFIGURATION%\%PLATFORM%\wufuc*.dll" "setup-batch\"
|
||||
copy /Y "wufuc\bin\%CONFIGURATION%\%PLATFORM%\wufuc.dll" "setup-batch\"
|
||||
|
||||
copy /Y "LICENSE" "setup-batch\COPYING.txt"
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil Arial;}{\f2\fnil\fcharset0 Courier New;}}
|
||||
{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil Arial;}{\f2\fnil\fcharset0 Courier New;}}
|
||||
{\colortbl ;\red0\green0\blue255;}
|
||||
{\*\generator Msftedit 5.41.21.2512;}\viewkind4\uc1\pard\sa180\lang9\b\fs22 GNU GENERAL PUBLIC LICENSE\par
|
||||
\b0\fs20 Version 3, 29 June 2007\par
|
||||
Copyright \'a9 2007 Free Software Foundation, Inc. <{\field{\*\fldinst{HYPERLINK "http://fsf.org/"}}{\fldrslt{\ul\cf1 http://fsf.org/}}}\f0\fs20 >\par
|
||||
Copyright \'a9 2007 Free Software Foundation, Inc. {\field{\*\fldinst{HYPERLINK "http://fsf.org/"}}{\fldrslt{\ul\cf1 http://fsf.org/}}}\f0\fs20\par
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\par
|
||||
\b\fs22 Preamble\par
|
||||
\b0\fs20 The GNU General Public License is a free, copyleft license for software and other kinds of works.\par
|
||||
@@ -114,12 +114,12 @@ END OF TERMS AND CONDITIONS\par
|
||||
\b\fs22 How to Apply These Terms to Your New Programs\par
|
||||
\b0\fs20 If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\par
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \f1\ldblquote\f0 copyright\f1\rdblquote\f0 line and a pointer to where the full notice is found.\par
|
||||
\f2\fs18 <one line to give the program's name and a brief idea of what it does.>\line Copyright (C) <year> <name of author>\line\line This program is free software: you can redistribute it and/or modify\line it under the terms of the GNU General Public License as published by\line the Free Software Foundation, either version 3 of the License, or\line (at your option) any later version.\line\line This program is distributed in the hope that it will be useful,\line but WITHOUT ANY WARRANTY; without even the implied warranty of\line MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\line GNU General Public License for more details.\line\line You should have received a copy of the GNU General Public License\line along with this program. If not, see <{\field{\*\fldinst{HYPERLINK "http://www.gnu.org/licenses/"}}{\fldrslt{\ul\cf1 http://www.gnu.org/licenses/}}}\f2\fs18 >.\fs20\par
|
||||
\f2\fs18 <one line to give the program's name and a brief idea of what it does.>\line Copyright (C) <year> <name of author>\line\line This program is free software: you can redistribute it and/or modify\line it under the terms of the GNU General Public License as published by\line the Free Software Foundation, either version 3 of the License, or\line (at your option) any later version.\line\line This program is distributed in the hope that it will be useful,\line but WITHOUT ANY WARRANTY; without even the implied warranty of\line MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\line GNU General Public License for more details.\line\line You should have received a copy of the GNU General Public License\line along with this program. If not, see {\field{\*\fldinst{HYPERLINK "http://www.gnu.org/licenses/"}}{\fldrslt{\ul\cf1 http://www.gnu.org/licenses/}}}\f2\fs18 .\fs20\par
|
||||
\f0 Also add information on how to contact you by electronic and paper mail.\par
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\par
|
||||
\f2\fs18 <program> Copyright (C) <year> <name of author>\line This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\line This is free software, and you are welcome to redistribute it\line under certain conditions; type `show c' for details.\fs20\par
|
||||
\f0 The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \f1\ldblquote\f0 about box\f1\rdblquote\f0 .\par
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a \f1\ldblquote\f0 copyright disclaimer\f1\rdblquote\f0 for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <{\field{\*\fldinst{HYPERLINK "http://www.gnu.org/licenses/"}}{\fldrslt{\ul\cf1 http://www.gnu.org/licenses/}}}\f0\fs20 >.\par
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <{\field{\*\fldinst{HYPERLINK "http://www.gnu.org/philosophy/why-not-lgpl.html"}}{\fldrslt{\ul\cf1 http://www.gnu.org/philosophy/why-not-lgpl.html}}}\f0\fs20 >.\par
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a \f1\ldblquote\f0 copyright disclaimer\f1\rdblquote\f0 for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see {\field{\*\fldinst{HYPERLINK "http://www.gnu.org/licenses/"}}{\fldrslt{\ul\cf1 http://www.gnu.org/licenses/}}}\f0\fs20 .\par
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read {\field{\*\fldinst{HYPERLINK "http://www.gnu.org/philosophy/why-not-lgpl.html"}}{\fldrslt{\ul\cf1 http://www.gnu.org/philosophy/why-not-lgpl.html}}}\f0\fs20 .\par
|
||||
}
|
||||
|