README in Russian

This commit is contained in:
paravis committed 2026-11-07 20:46:28 +03:00
1 parent 45967534aa
commit d0e66f4f48
1 file changed
+54 -53
+54 -53
View File
@@ -1,85 +1,86 @@
# Windows Setup by Paravis — C++ port # Установщик Windows PARAVIS
Native Win32 port of `Windows_installer_NEW\setup.au3`. Нативная Win32-версия `Windows_installer_NEW\setup.au3` на C++.
## Build ## Сборка
Requirements: Visual Studio 2022 (Desktop C++) and CMake 3.20+. Требования: Visual Studio 2022 (Desktop C++) и CMake 3.20+.
```bat ```bat
build.cmd build.cmd
``` ```
Outputs: Результат:
``` ```
build_x64\Release\setup_x64.exe build_x64\Release\setup_x64.exe
build_x86\Release\setup_x86.exe build_x86\Release\setup_x86.exe
``` ```
The executables use a static CRT, are GUI subsystem, and use the same Исполняемые файлы используют статическую CRT, GUI-подсистему и тот же
`asInvoker` manifest / Common Controls 6 as the AutoIt builds. манифест `asInvoker` / Common Controls 6, что и сборки на AutoIt.
## Preview ## Предпросмотр
- `setup_x64.exe /preview` or an executable named `setup_preview*.exe` - `setup_x64.exe /preview` или файл с именем `setup_preview*.exe` запускает
starts preview mode: fixed 307×259 position, all buttons enabled, no режим предпросмотра: фиксированная позиция 307×259, все кнопки активны,
`src_*.exe` helper, preview wallpaper. без помощника `src_*.exe`, обои предпросмотра.
- The ported `setup_preview.exe` in `..\Windows_installer_NEW` is the x64 - `build_x64\Release\setup_x64.exe`, переименованный в `setup_preview.exe`,
build used this way. используется именно так.
## Deployment ## Размещение на флешке
On a PARAVIS flash the two Windows Setup WIMs are: Два образа Windows Setup на флешке PARAVIS:
- `\efi\Paravis\Boot\ws64.wim`, image 1, `\Windows\Setup.exe` — x64 build - `\efi\Paravis\Boot\ws64.wim`, образ 1, `\Windows\Setup.exe` — сборка x64;
- `\efi\Paravis\Boot\ws86.wim`, image 1, `\Windows\Setup.exe` — x86 build - `\efi\Paravis\Boot\ws86.wim`, образ 1, `\Windows\Setup.exe` — сборка x86.
`Winpeshl.ini` in both WIMs already launches `%SYSTEMROOT%\setup.exe`. `Winpeshl.ini` в обоих WIM уже запускает `%SYSTEMROOT%\setup.exe`.
The launcher starts the real setup from `X:\sources\setup.exe`. Запускается настоящий Setup из `X:\sources\setup.exe`.
The window is layered with color key `0xABCDEF`. The Montserrat fonts are Окно использует цветовой ключ `0xABCDEF`. Шрифты Montserrat встроены как
embedded as RCDATA; the 1024×768 wallpaper is embedded as a lossless PNG and ресурсы `RCDATA`; обои 1024×768 встроены как PNG без потерь и
decoded with GDI+ at startup. This keeps each executable around 1 MB. декодируются через GDI+ при запуске. Поэтому каждый exe весит около 1 МБ.
The UI is the same 376/410/360-wide layout as the AutoIt version, with native Разметка UI та же, что в AutoIt-версии (376/410/360 по ширине), кнопки
buttons. GDI+ and ole32 are standard components of the Windows Setup boot.wim нативные. GDI+ и ole32 входят в стандартный Windows Setup boot.wim
(verified in the target image). (проверено в целевом образе).
## Behaviour ## Поведение
- Searches all drives for `\WindowsESD\NOT.DEL` or - Ищет `\WindowsESD\NOT.DEL` или `\efi\Paravis\Windows\NOT.DEL` на всех
`\efi\Paravis\Windows\NOT.DEL`. дисках.
- Warns and exits if both image folders are present. - Предупреждает и выходит, если найдены обе папки с образами.
- Finds `\efi\Paravis\Boot\NOT.DEL` for `src_x64.exe` / `src_x86.exe` - Находит `\efi\Paravis\Boot\NOT.DEL` для `src_x64.exe` / `src_x86.exe` и
and Total Commander. Total Commander.
- Uses `%WINDIR%\SYSWOW64` to select the x64 UI; `firmware_type` selects - Использует `%WINDIR%\SYSWOW64` для выбора x64-интерфейса; `firmware_type`
Legacy vs UEFI for the x86 UI. выбирает Legacy или UEFI для x86-интерфейса.
- Builds the same `X:\sources\setup.exe /installfrom:... /m:... [/unattend:...]` - Собирает те же командные строки
command lines as AutoIt. `X:\sources\setup.exe /installfrom:... /m:... [/unattend:...]`, что и
- Disables Windows buttons when the corresponding ESD image is missing. AutoIt.
- Reboot button exits the launcher (the WinPE startup script performs the - Отключает кнопки Windows, если соответствующий образ ESD отсутствует.
reboot). - Кнопка перезагрузки завершает программу (перезагрузку выполняет
- Debug log: set `PARAVIS_DEBUG_LOG=1` to write стартовый скрипт WinPE).
- Отладочный лог: `PARAVIS_DEBUG_LOG=1` включает запись в
`%TEMP%\winsetup_cpp_debug.log`. `%TEMP%\winsetup_cpp_debug.log`.
## Repository layout ## Структура репозитория
``` ```
src/ C++ sources and resources src/ исходники C++
assets/ fonts, wallpapers and UI images (incl. Montserrat OFL) assets/ шрифты, обои и элементы интерфейса (включая Montserrat OFL)
legacy-au3/ original AutoIt scripts legacy-au3/ исходные скрипты AutoIt
app.rc resource script app.rc скрипт ресурсов
app.manifest application manifest app.manifest манифест приложения
build.cmd release build (x64 + x86) build.cmd сборка релиза (x64 + x86)
``` ```
## License ## Лицензия
MIT for the program code. See [`LICENSE`](LICENSE). Код — MIT, см. [`LICENSE`](LICENSE).
Montserrat is licensed under the SIL Open Font License 1.1; see Montserrat распространяется по SIL Open Font License 1.1, см.
[`assets/OFL.txt`](assets/OFL.txt) and [`THIRD-PARTY.md`](THIRD-PARTY.md). [`assets/OFL.txt`](assets/OFL.txt) и [`THIRD-PARTY.md`](THIRD-PARTY.md).
This repository contains source code only. Windows installation images В репозитории только исходный код. Образы установки Windows (`*.wim`,
(`*.wim`, `*.esd`, `Data.pf`), Microsoft font derivatives and third-party `*.esd`, `Data.pf`), производные шрифтов Microsoft и сторонние бинарники не
binaries are not distributed here. распространяются.