Add build, deploy and test sources
This commit is contained in:
1 parent
f4f46e6c59
commit
37350838e5
6 files changed
+272
No files matched your search
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 Paravis
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,43 @@
|
||||
# Windows setup deployment files
|
||||
|
||||
Deployment sources for the PARAVIS Windows setup: answer files, WindowsESD
|
||||
packaging and Data.pf build helpers.
|
||||
|
||||
`UpWin` is intentionally not part of this repository. It will be published
|
||||
separately when it is ready.
|
||||
|
||||
## Layout
|
||||
|
||||
```
|
||||
unattend/ answer files (unattend11.xml)
|
||||
scripts/ make-esd.ps1, run-fake.cmd
|
||||
legacy-au3/ legacy AutoIt helper (backdrop.au3)
|
||||
```
|
||||
|
||||
`make-esd.ps1` converts a Windows image (`Data.wim`) into `PF.esd` with
|
||||
recovery compression. `run-fake.cmd` runs the installer against the fake
|
||||
`Data.fake.pf` for testing.
|
||||
|
||||
## Build
|
||||
|
||||
1. Prepare a Windows image tree and capture images 1–3 (PARAVIS, VTOYEFI,
|
||||
DATA) into a WIM.
|
||||
2. Use `make-esd.ps1` to export it to an ESD (or keep WIM for `Data.pf`).
|
||||
3. Put `Data.pf` and `WindowsESD.pf` next to `Paravis installer.exe`.
|
||||
4. Place the answer files in `WindowsESD/autounattend/`.
|
||||
|
||||
The installer looks for `Data.pf` and `WindowsESD.pf` next to the executable.
|
||||
`WindowsESD.pf` contains the `WindowsESD` folder and is extracted to DATA
|
||||
after `Data.pf`.
|
||||
|
||||
## Not included
|
||||
|
||||
- Windows images (`*.wim`, `*.esd`, `*.iso`, `Data.pf`);
|
||||
- product keys, OEM license files and personal data;
|
||||
- UpWin sources;
|
||||
- Microsoft font derivatives.
|
||||
|
||||
## License
|
||||
|
||||
The scripts are MIT. The answer files contain no product keys or personal
|
||||
data.
|
||||
@@ -0,0 +1,8 @@
|
||||
#NoTrayIcon
|
||||
#include <GUIConstantsEx.au3>
|
||||
#include <WindowsConstants.au3>
|
||||
|
||||
$h = GUICreate("Paravis Preview Background", 1024, 768, 0, 0, $WS_POPUP, $WS_EX_TOPMOST)
|
||||
GUICtrlCreatePic("C:\PF\Windows_installer_NEW\assets\wallpaper-install.bmp", 0, 0, 1024, 768)
|
||||
GUISetState(@SW_SHOW, $h)
|
||||
Sleep(30000)
|
||||
@@ -0,0 +1,40 @@
|
||||
# Convert Data.wim -> PF.esd (LZMS / recovery compression), all three images.
|
||||
$ErrorActionPreference = 'Continue'
|
||||
$dir = 'C:\PF\TEST_i'
|
||||
$src = Join-Path $dir 'Data.wim'
|
||||
$dst = Join-Path $dir 'PF.esd'
|
||||
$log = Join-Path $dir 'esd-build.log'
|
||||
|
||||
function W($s) { $s | Add-Content -Path $log -Encoding UTF8 }
|
||||
|
||||
"=== start $(Get-Date -Format 'HH:mm:ss') ===" | Set-Content $log -Encoding UTF8
|
||||
W ("source: " + $src + " " + [math]::Round((Get-Item $src).Length/1GB,2) + " GB")
|
||||
if (Test-Path $dst) { Remove-Item $dst -Force }
|
||||
|
||||
$t = Get-Date
|
||||
$o1 = & dism.exe /English /Export-Image /SourceImageFile:$src /SourceIndex:1 /DestinationImageFile:$dst /Compress:recovery /CheckIntegrity 2>&1
|
||||
$c1 = $LASTEXITCODE
|
||||
W ("index 1: code " + $c1 + " " + (((Get-Date)-$t).ToString('mm\:ss')))
|
||||
$o1 | Select-Object -Last 3 | ForEach-Object { W (' ' + $_) }
|
||||
|
||||
$t = Get-Date
|
||||
$o2 = & dism.exe /English /Export-Image /SourceImageFile:$src /SourceIndex:2 /DestinationImageFile:$dst /CheckIntegrity 2>&1
|
||||
$c2 = $LASTEXITCODE
|
||||
W ("index 2: code " + $c2 + " " + (((Get-Date)-$t).ToString('mm\:ss')))
|
||||
$o2 | Select-Object -Last 3 | ForEach-Object { W (' ' + $_) }
|
||||
|
||||
$t = Get-Date
|
||||
$o3 = & dism.exe /English /Export-Image /SourceImageFile:$src /SourceIndex:3 /DestinationImageFile:$dst /CheckIntegrity 2>&1
|
||||
$c3 = $LASTEXITCODE
|
||||
W ("index 3: code " + $c3 + " " + (((Get-Date)-$t).ToString('mm\:ss')))
|
||||
$o3 | Select-Object -Last 3 | ForEach-Object { W (' ' + $_) }
|
||||
|
||||
if (Test-Path $dst) {
|
||||
W ("result: " + [math]::Round((Get-Item $dst).Length/1GB,2) + " GB")
|
||||
$info = & dism.exe /English /Get-WimInfo /WimFile:$dst 2>&1
|
||||
$info | Out-File (Join-Path $dir 'esd-info.txt') -Encoding UTF8
|
||||
foreach ($l in $info) { if ($l -match 'Index :|Name :|Size :|Compression') { W (' ' + $l.Trim()) } }
|
||||
} else {
|
||||
W "result: FILE NOT CREATED"
|
||||
}
|
||||
W ("=== end $(Get-Date -Format 'HH:mm:ss') ===")
|
||||
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
start "" "Paravis installer.exe" /wim:"%~dp0Data.fake.pf"
|
||||
@@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||||
<!--
|
||||
Paravis / Windows 11 answer file.
|
||||
|
||||
ВАЖНО:
|
||||
* pass="windowsPE" обязателен для Microsoft-Windows-Setup.
|
||||
Прежний pass="disabled" не существует, поэтому весь блок игнорировался.
|
||||
* Этот файл работает, только если передан как /unattend:<path>
|
||||
или лежит в КОРНЕ носителя как autounattend.xml.
|
||||
Копия в sources\$OEM$\$$\Panther\unattend.xml применяется слишком поздно
|
||||
(после windowsPE) и обход TPM/Secure Boot из неё не сработает.
|
||||
* ProductKey намеренно не задан: setup покажет выбор редакции.
|
||||
-->
|
||||
<settings pass="windowsPE">
|
||||
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" language="neutral" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS">
|
||||
<UserData>
|
||||
<AcceptEula>true</AcceptEula>
|
||||
</UserData>
|
||||
<RunSynchronous>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>1</Order>
|
||||
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>2</Order>
|
||||
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>3</Order>
|
||||
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
|
||||
</RunSynchronousCommand>
|
||||
</RunSynchronous>
|
||||
</component>
|
||||
</settings>
|
||||
|
||||
<settings pass="specialize">
|
||||
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" language="neutral" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS">
|
||||
<RunSynchronous>
|
||||
<!-- OOBE: разрешить локальную учётную запись без Microsoft-аккаунта -->
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>1</Order>
|
||||
<Path>reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f</Path>
|
||||
</RunSynchronousCommand>
|
||||
<!-- OneDrive: отключить синхронизацию и удалить установщик -->
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>2</Order>
|
||||
<Path>reg add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f</Path>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>3</Order>
|
||||
<Path>PowerShell -NonInteractive -WindowStyle Hidden -Command "Remove-Item -Path $env:SystemRoot\System32\OneDriveSetup.exe -Force -Confirm:$false; Remove-Item -Path $env:SystemRoot\SysWOW64\OneDriveSetup.exe -Force -Confirm:$false;"</Path>
|
||||
</RunSynchronousCommand>
|
||||
<!-- Удаление предустановленных Outlook и Teams -->
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>4</Order>
|
||||
<Path>PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like '*Outlook*'} | Remove-AppxProvisionedPackage -Online"</Path>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>5</Order>
|
||||
<Path>PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxPackage -AllUsers *Outlook* | Remove-AppxPackage -AllUsers"</Path>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>6</Order>
|
||||
<Path>PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like '*Teams*'} | Remove-AppxProvisionedPackage -Online"</Path>
|
||||
</RunSynchronousCommand>
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>7</Order>
|
||||
<Path>PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxPackage -AllUsers *Teams* | Remove-AppxPackage -AllUsers"</Path>
|
||||
</RunSynchronousCommand>
|
||||
</RunSynchronous>
|
||||
</component>
|
||||
</settings>
|
||||
|
||||
<settings pass="oobeSystem">
|
||||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" language="neutral" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS">
|
||||
<OOBE>
|
||||
<HideEULAPage>true</HideEULAPage>
|
||||
<ProtectYourPC>3</ProtectYourPC>
|
||||
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
|
||||
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
||||
</OOBE>
|
||||
<!--
|
||||
Если в 24H2+ экран Microsoft-аккаунта всё равно появился:
|
||||
Shift+F10 -> start ms-cxh:localonly
|
||||
-->
|
||||
<FirstLogonCommands>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>1</Order>
|
||||
<CommandLine>reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>2</Order>
|
||||
<CommandLine>reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCopilotButton /t REG_DWORD /d 0 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>3</Order>
|
||||
<CommandLine>reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsCopilot" /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>4</Order>
|
||||
<CommandLine>reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 1 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>5</Order>
|
||||
<CommandLine>reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarModeCache /t REG_DWORD /d 1 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>6</Order>
|
||||
<CommandLine>reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>7</Order>
|
||||
<CommandLine>reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>8</Order>
|
||||
<CommandLine>reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v BingSearchEnabled /t REG_DWORD /d 0 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>9</Order>
|
||||
<CommandLine>reg add "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>10</Order>
|
||||
<CommandLine>reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Feeds" /v EnableFeeds /t REG_DWORD /d 0 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>11</Order>
|
||||
<CommandLine>reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Communications" /v ConfigureChatAutoInstall /t REG_DWORD /d 0 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>12</Order>
|
||||
<CommandLine>reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableCloudOptimizedContent /t REG_DWORD /d 1 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>13</Order>
|
||||
<CommandLine>reg add "HKLM\Software\Policies\Microsoft\Edge" /v HideFirstRunExperience /t REG_DWORD /d 1 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>14</Order>
|
||||
<CommandLine>reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_Layout /t REG_DWORD /d 1 /f</CommandLine>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>15</Order>
|
||||
<CommandLine>PowerShell -NonInteractive -WindowStyle Hidden -Command "Set-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start' -Name 'VisiblePlaces' -Value $([convert]::FromBase64String('ztU0LVr6Q0WC8iLm6vd3PC+zZ+PeiVVDv85h83sYqTe8JIoUDNaJQqCAbtm7okiCRIF1/g0IrkKL2jTtl7ZjlEqwvXRK+WhPi9ZDmAcdqLyGCHNSqlFDQp97J3ZYRlnU')) -Type 'Binary'"</CommandLine>
|
||||
</SynchronousCommand>
|
||||
</FirstLogonCommands>
|
||||
</component>
|
||||
<component name="Microsoft-Windows-SecureStartup-FilterDriver" processorArchitecture="amd64" language="neutral" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS">
|
||||
<PreventDeviceEncryption>true</PreventDeviceEncryption>
|
||||
</component>
|
||||
<component name="Microsoft-Windows-EnhancedStorage-Adm" processorArchitecture="amd64" language="neutral" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS">
|
||||
<TCGSecurityActivationDisabled>1</TCGSecurityActivationDisabled>
|
||||
</component>
|
||||
</settings>
|
||||
</unattend>
|
||||
Reference in new issue
Block a user