Indent with 4 spaces

This commit is contained in:
Viktor Szépe
2024-04-22 08:40:16 +00:00
parent 3c72acf1f1
commit beab8214d5
2 changed files with 47 additions and 47 deletions

View File

@@ -1,37 +1,37 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend"> <unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem"> <settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<OOBE> <OOBE>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens> <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
</OOBE> </OOBE>
</component> </component>
</settings> </settings>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ConfigureChatAutoInstall>false</ConfigureChatAutoInstall> <ConfigureChatAutoInstall>false</ConfigureChatAutoInstall>
</component> </component>
<settings pass="windowsPE"> <settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DynamicUpdate> <DynamicUpdate>
<WillShowUI>OnError</WillShowUI> <WillShowUI>OnError</WillShowUI>
</DynamicUpdate> </DynamicUpdate>
<ImageInstall> <ImageInstall>
<OSImage> <OSImage>
<Compact>true</Compact> <Compact>true</Compact>
<WillShowUI>OnError</WillShowUI> <WillShowUI>OnError</WillShowUI>
<InstallFrom> <InstallFrom>
<MetaData wcm:action="add"> <MetaData wcm:action="add">
<Key>/IMAGE/INDEX</Key> <Key>/IMAGE/INDEX</Key>
<Value>1</Value> <Value>1</Value>
</MetaData> </MetaData>
</InstallFrom> </InstallFrom>
</OSImage> </OSImage>
</ImageInstall> </ImageInstall>
<UserData> <UserData>
<ProductKey> <ProductKey>
<Key></Key> <Key/>
</ProductKey> </ProductKey>
</UserData> </UserData>
</component> </component>
</settings> </settings>
</unattend> </unattend>

View File

@@ -13,16 +13,16 @@ $myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWin
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator $adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
if ($myWindowsPrincipal.IsInRole($adminRole)) if ($myWindowsPrincipal.IsInRole($adminRole))
{ {
$Host.UI.RawUI.WindowTitle = "tiny11 builder" $Host.UI.RawUI.WindowTitle = "tiny11 builder"
Clear-Host Clear-Host
} }
else else
{ {
$newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell"; $newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
$newProcess.Arguments = $myInvocation.MyCommand.Definition; $newProcess.Arguments = $myInvocation.MyCommand.Definition;
$newProcess.Verb = "runas"; $newProcess.Verb = "runas";
[System.Diagnostics.Process]::Start($newProcess); [System.Diagnostics.Process]::Start($newProcess);
exit exit
} }
Write-Host "Welcome to the tiny11 image creator!" Write-Host "Welcome to the tiny11 image creator!"
Start-Sleep -Seconds 3 Start-Sleep -Seconds 3
@@ -33,9 +33,9 @@ $DriveLetter = Read-Host "Please enter the drive letter for the Windows 11 image
$DriveLetter = $DriveLetter + ":" $DriveLetter = $DriveLetter + ":"
if ((Test-Path "$DriveLetter\sources\boot.wim") -eq $false -or (Test-Path "$DriveLetter\sources\install.wim") -eq $false) { if ((Test-Path "$DriveLetter\sources\boot.wim") -eq $false -or (Test-Path "$DriveLetter\sources\install.wim") -eq $false) {
Write-Host "Can't find Windows OS Installation files in the specified Drive Letter.." Write-Host "Can't find Windows OS Installation files in the specified Drive Letter.."
Write-Host "Please enter the correct DVD Drive Letter.." Write-Host "Please enter the correct DVD Drive Letter.."
exit exit
} }
New-Item -ItemType Directory -Force -Path "$mainOSDrive\tiny11" New-Item -ItemType Directory -Force -Path "$mainOSDrive\tiny11"