LittleNewton / wt-here

在 Windows 右键菜单中添加 Windows Terminal 启动选项

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to install

StageGuard opened this issue · comments

Powershell version: 7.0.3.0
Windows version: Windows 10 Pro (Insider Preview) 20197.1000

PS C:\Users\<username>\Desktop> .\a.ps1 Mini
布局风格:Mini
WARNING: The latest version found is less than 0.11, which is not tested. The install script might fail in certain way.
Write-Error: C:\Users\<username>\Desktop\a.ps1:414
Line |
 414 |      $folder = GetProgramFilesFolder $includePreview
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Failed to find Windows Terminal actual folder. The install script might fail in certain way.

GetWindowsTerminalIcon: C:\Users\<username>\Desktop\a.ps1:422
Line |
 422 |      $icon = GetWindowsTerminalIcon $folder $localCache
     |                                     ~~~~~~~
     | Cannot bind argument to parameter 'folder' because it is an empty string.

CreateMenuItem: C:\Users\<username>\Desktop\a.ps1:452
Line |
 452 |  … "                "Windows Terminal Here"                $icon $comman …
     |                                                            ~~~~~
     | Cannot bind argument to parameter 'icon' because it is an empty string.

CreateMenuItem: C:\Users\<username>\Desktop\a.ps1:453
Line |
 453 |  …             "Windows Terminal Here as Administrator"    $icon $elevat …
     |                                                            ~~~~~
     | Cannot bind argument to parameter 'icon' because it is an empty string.

CreateMenuItem: C:\Users\<username>\Desktop\a.ps1:454
Line |
 454 |  … inalMini"        "Windows Terminal Here"                $icon $comman …
     |                                                            ~~~~~
     | Cannot bind argument to parameter 'icon' because it is an empty string.

CreateMenuItem: C:\Users\<username>\Desktop\a.ps1:455
Line |
 455 |  … min"        "Windows Terminal Here as Administrator"    $icon $elevat …
     |                                                            ~~~~~
     | Cannot bind argument to parameter 'icon' because it is an empty string.

Windows Terminal 启动选项已添加到资源管理器右键菜单

P.S. 卸载请使用 .\uninstall.ps1 Mini

solved