Disable baremetal for now;Add to package manager install logic
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0c19c023de
commit
16575d1db4
@ -1,7 +1,7 @@
|
|||||||
<?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">
|
||||||
<servicing/>
|
<servicing/>
|
||||||
<settings pass="windowsPE">
|
<settings pass="auditSystem">
|
||||||
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
||||||
<DriverPaths>
|
<DriverPaths>
|
||||||
<PathAndCredentials wcm:action="add" wcm:keyValue="1">
|
<PathAndCredentials wcm:action="add" wcm:keyValue="1">
|
||||||
@ -9,6 +9,8 @@
|
|||||||
</PathAndCredentials>
|
</PathAndCredentials>
|
||||||
</DriverPaths>
|
</DriverPaths>
|
||||||
</component>
|
</component>
|
||||||
|
</settings>
|
||||||
|
<settings pass="windowsPE">
|
||||||
<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">
|
<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">
|
||||||
<DiskConfiguration>
|
<DiskConfiguration>
|
||||||
<Disk wcm:action="add">
|
<Disk wcm:action="add">
|
||||||
|
@ -185,20 +185,24 @@ source "vsphere-iso" "srv2019-baremetal" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build {
|
build {
|
||||||
|
// sources = [
|
||||||
|
// "source.vsphere-iso.srv2019-template",
|
||||||
|
// "source.vsphere-iso.srv2019-virtual",
|
||||||
|
// "source.vsphere-iso.srv2019-baremetal"
|
||||||
|
// ]
|
||||||
sources = [
|
sources = [
|
||||||
"source.vsphere-iso.srv2019-template",
|
"source.vsphere-iso.srv2019-template",
|
||||||
"source.vsphere-iso.srv2019-virtual",
|
"source.vsphere-iso.srv2019-virtual"
|
||||||
"source.vsphere-iso.srv2019-baremetal"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
provisioner "windows-update" {
|
provisioner "windows-update" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// provisioner "powershell" {
|
provisioner "powershell" {
|
||||||
// scripts = [
|
scripts = [
|
||||||
// "scripts/Install-WinGet.ps1"
|
"scripts/Install-WinGet.ps1"
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// provisioner "powershell" {
|
// provisioner "powershell" {
|
||||||
// inline = [
|
// inline = [
|
||||||
// "winget install mozilla.firefox",
|
// "winget install mozilla.firefox",
|
||||||
|
@ -52,3 +52,14 @@ $AddAppxPackageSplat = @{
|
|||||||
}
|
}
|
||||||
Add-AppxPackage @AddAppxPackageSplat
|
Add-AppxPackage @AddAppxPackageSplat
|
||||||
|
|
||||||
|
# Create reparse point
|
||||||
|
$SetExecutionAliasSplat = @{
|
||||||
|
Path = "$([System.Environment]::SystemDirectory)\winget.exe"
|
||||||
|
PackageName = "Microsoft.DesktopAppInstaller_8wekyb3d8bbwe"
|
||||||
|
EntryPoint = "Microsoft.DesktopAppInstaller_8wekyb3d8bbwe!winget"
|
||||||
|
Target = "$((Get-AppxPackage Microsoft.DesktopAppInstaller).InstallLocation)\AppInstallerCLI.exe"
|
||||||
|
AppType = 'Desktop'
|
||||||
|
Version = 3
|
||||||
|
}
|
||||||
|
Set-ExecutionAlias @SetExecutionAliasSplat
|
||||||
|
& explorer.exe "shell:appsFolder\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe!winget"
|
Loading…
Reference in New Issue
Block a user