Open GreatTeacherBasshead opened 5 years ago
I am unable to repro this. I tested by joining a DOS-style path with another path, and Test-Path is able to correctly detect whether the path exists or not.
Ok... My bad. Test-Path
works, but Remove-Item
does not:
What version of Windows and PowerShell are you using? I can't get this to repro (follwed the instructions above).
I have it both on Windows Server 2016 and 2019. Windows PowerShell 5.1
I think the problem is in the user name. Try to test it for a user, who has a dot in the name, like I showed.
FYI I'm experiencing the $env:TEMP
bug as noted in #71
I believe @GreatTeacherBasshead is correct as my user account also has a .
in it.
$env:TEMP
can be resolved to DOS-style path like 'C:\Users\ARZZ~1.BOK\AppData\Local\Temp', and then afterJoin-Path
the resulting literal path is invalid. If youTest-Path $script:location_modules
, you getfalse
in this case. It causes thatremove-item
in line 334 fails the installation.