diff --git a/deploy/LICENSE b/deploy/LICENSE new file mode 100644 index 0000000..814759f --- /dev/null +++ b/deploy/LICENSE @@ -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. diff --git a/deploy/README.md b/deploy/README.md new file mode 100644 index 0000000..2c36c45 --- /dev/null +++ b/deploy/README.md @@ -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. diff --git a/deploy/legacy-au3/backdrop.au3 b/deploy/legacy-au3/backdrop.au3 new file mode 100644 index 0000000..7aafbf2 --- /dev/null +++ b/deploy/legacy-au3/backdrop.au3 @@ -0,0 +1,8 @@ +#NoTrayIcon +#include +#include + +$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) diff --git a/deploy/scripts/make-esd.ps1 b/deploy/scripts/make-esd.ps1 new file mode 100644 index 0000000..b72b88f --- /dev/null +++ b/deploy/scripts/make-esd.ps1 @@ -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') ===") diff --git a/deploy/scripts/run-fake.cmd b/deploy/scripts/run-fake.cmd new file mode 100644 index 0000000..d25da9a --- /dev/null +++ b/deploy/scripts/run-fake.cmd @@ -0,0 +1,3 @@ +@echo off +cd /d "%~dp0" +start "" "Paravis installer.exe" /wim:"%~dp0Data.fake.pf" diff --git a/deploy/unattend/unattend11.xml b/deploy/unattend/unattend11.xml new file mode 100644 index 0000000..3a3b5f1 --- /dev/null +++ b/deploy/unattend/unattend11.xml @@ -0,0 +1,157 @@ + + + + + + + true + + + + 1 + reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f + + + 2 + reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f + + + 3 + reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f + + + + + + + + + + + 1 + reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f + + + + 2 + reg add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f + + + 3 + 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;" + + + + 4 + PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like '*Outlook*'} | Remove-AppxProvisionedPackage -Online" + + + 5 + PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxPackage -AllUsers *Outlook* | Remove-AppxPackage -AllUsers" + + + 6 + PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like '*Teams*'} | Remove-AppxProvisionedPackage -Online" + + + 7 + PowerShell -NonInteractive -WindowStyle Hidden -Command "Get-AppxPackage -AllUsers *Teams* | Remove-AppxPackage -AllUsers" + + + + + + + + + true + 3 + true + true + + + + + 1 + reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f + + + 2 + reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCopilotButton /t REG_DWORD /d 0 /f + + + 3 + reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsCopilot" /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f + + + 4 + reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 1 /f + + + 5 + reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarModeCache /t REG_DWORD /d 1 /f + + + 6 + reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f + + + 7 + reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f + + + 8 + reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v BingSearchEnabled /t REG_DWORD /d 0 /f + + + 9 + reg add "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f + + + 10 + reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Feeds" /v EnableFeeds /t REG_DWORD /d 0 /f + + + 11 + reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Communications" /v ConfigureChatAutoInstall /t REG_DWORD /d 0 /f + + + 12 + reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableCloudOptimizedContent /t REG_DWORD /d 1 /f + + + 13 + reg add "HKLM\Software\Policies\Microsoft\Edge" /v HideFirstRunExperience /t REG_DWORD /d 1 /f + + + 14 + reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_Layout /t REG_DWORD /d 1 /f + + + 15 + 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'" + + + + + true + + + 1 + + +