OSDBuilder icon indicating copy to clipboard operation
OSDBuilder copied to clipboard

OSDBuilder 21.12.15.1 | OSD 22.1.18.1 - New-OSBuildMultiLang ImagePath error

Open aimar115 opened this issue 3 years ago • 1 comments

Never had that problem with older versions.

image

what could it be?

aimar115 avatar Jan 20 '22 08:01 aimar115

i think i found it. in Allfunctions.ps1 $MountedWindowsImage = Get-WindowsImage -Mounted | Where-Object {$_.Path -eq $MountDirectory} $MountDirectory does not equal $_.Path cause $MountDirectory = "C:\Users\OD42B~1.BOR\AppData\Local\Temp\mount4356" Windows shortened it! $_.Path = "c:\users\o.borolongprofilename\AppData\Local\Temp\mount4356" you should not use $env:Temp good alternative is $((Get-Item $env:Temp).fullname) so I replaced $env:Temp with $((Get-Item $env:Temp).fullname) in New-OSBuildMultiLang.ps1 and all works fine ;)

aimar115 avatar Jan 20 '22 11:01 aimar115