File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -732,9 +732,11 @@ Write-Host "Exporting ESD. This may take a while..."
732
732
Remove-Item " $mainOSDrive \tiny11\sources\install.wim" > $null 2>&1
733
733
Write-Host " The tiny11 image is now completed. Proceeding with the making of the ISO..."
734
734
Write-Host " Creating ISO image..."
735
- # Get Windows ADK path from registry(following Visual Studio's winsdk.bat approach), trim the following backslash for path concatenation .
736
- $WinSDKPath = [Microsoft.Win32.Registry ]::GetValue(" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots" , " KitsRoot10" , $null ).TrimEnd( ' \ ' )
735
+ # Get Windows ADK path from registry(following Visual Studio's winsdk.bat approach).
736
+ $WinSDKPath = [Microsoft.Win32.Registry ]::GetValue(" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots" , " KitsRoot10" , $null )
737
737
if ($null -ne $WinSDKPath ) {
738
+ # Trim the following backslash for path concatenation.
739
+ $WinSDKPath = $WinSDKPath.TrimEnd (' \' )
738
740
$ADKDepTools = " $WinSDKPath \Assessment and Deployment Kit\Deployment Tools\$hostarchitecture \Oscdimg"
739
741
}
740
742
$localOSCDIMGPath = " $PSScriptRoot \oscdimg.exe"
Original file line number Diff line number Diff line change @@ -438,9 +438,11 @@ Write-Host "The tiny11 image is now completed. Proceeding with the making of the
438
438
Write-Host " Copying unattended file for bypassing MS account on OOBE..."
439
439
Copy-Item - Path " $PSScriptRoot \autounattend.xml" - Destination " $ScratchDisk \tiny11\autounattend.xml" - Force | Out-Null
440
440
Write-Host " Creating ISO image..."
441
- # Get Windows ADK path from registry(following Visual Studio's winsdk.bat approach), trim the following backslash for path concatenation .
442
- $WinSDKPath = [Microsoft.Win32.Registry ]::GetValue(" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots" , " KitsRoot10" , $null ).TrimEnd( ' \ ' )
441
+ # Get Windows ADK path from registry(following Visual Studio's winsdk.bat approach).
442
+ $WinSDKPath = [Microsoft.Win32.Registry ]::GetValue(" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots" , " KitsRoot10" , $null )
443
443
if ($null -ne $WinSDKPath ) {
444
+ # Trim the following backslash for path concatenation.
445
+ $WinSDKPath = $WinSDKPath.TrimEnd (' \' )
444
446
$ADKDepTools = " $WinSDKPath \Assessment and Deployment Kit\Deployment Tools\$hostarchitecture \Oscdimg"
445
447
}
446
448
$localOSCDIMGPath = " $PSScriptRoot \oscdimg.exe"
You can’t perform that action at this time.
0 commit comments