File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 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..."
732732Remove-Item " $mainOSDrive \tiny11\sources\install.wim" > $null 2>&1
733733Write-Host " The tiny11 image is now completed. Proceeding with the making of the ISO..."
734734Write-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 )
737737if ($null -ne $WinSDKPath ) {
738+ # Trim the following backslash for path concatenation.
739+ $WinSDKPath = $WinSDKPath.TrimEnd (' \' )
738740 $ADKDepTools = " $WinSDKPath \Assessment and Deployment Kit\Deployment Tools\$hostarchitecture \Oscdimg"
739741}
740742$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
438438Write-Host " Copying unattended file for bypassing MS account on OOBE..."
439439Copy-Item - Path " $PSScriptRoot \autounattend.xml" - Destination " $ScratchDisk \tiny11\autounattend.xml" - Force | Out-Null
440440Write-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 )
443443if ($null -ne $WinSDKPath ) {
444+ # Trim the following backslash for path concatenation.
445+ $WinSDKPath = $WinSDKPath.TrimEnd (' \' )
444446 $ADKDepTools = " $WinSDKPath \Assessment and Deployment Kit\Deployment Tools\$hostarchitecture \Oscdimg"
445447}
446448$localOSCDIMGPath = " $PSScriptRoot \oscdimg.exe"
You can’t perform that action at this time.
0 commit comments