
儘管WineHQ 評級不佳我嘗試在 Debian Jessie 上使用 wine 1.7 安裝 Powershell 2.0,在註冊表「修復」後,它運行時沒有出現先前的啟動錯誤。
我按照上一頁的說明進行操作,跳過了winetricks的圈套(希望它們是最新的),但出現了很多錯誤和安裝程序崩潰,最終得到了一些可以運行、顯示為2.0版本的東西,但給了我一個滿屏的螢幕在給我提示之前出現錯誤。
我透過用替換%SystemRoot%
來「修復」這些啟動錯誤。這似乎只是修復“損壞”安裝的症狀,所以我想確保沒有更好的解決方案可用。也許也能維持安裝最新?Windows 每次更新後提取檔案以建立可安裝套件的腳本?適合 2015 年以上安裝 PowerShell 2.0 的“winetricks 配方”c:\windows
wine regedit
wine bottle
正確地?我會接受任何東西。
我也面臨終端問題(單獨的問題)停用TAB-completion 並引入硬包裝。
這是註冊表修改之前的輸出:
$ /usr/lib/wine-development/wine powershell.exe
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
The following error occurred while loading the extended type data file:
Cannot find the path "%SystemRoot%\system32\WindowsPowerShell\v1.0" specified in the registry key: "SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell\Path". Using "C:\windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35" to load the configuration files.
Microsoft.PowerShell.Diagnostics, C:\windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\%SystemRoot%\system32\WindowsPowerShell\v1.0\GetEvent.types.ps1xml : File not found.
Microsoft.PowerShell.Core, C:\windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\%SystemRoot%\system32\WindowsPowerShell\v1.0\types.ps1xml : File not found.
... More followup errors ...
PS Z:\home\alex> $psversiontable.psversion
Major : 2
Minor : 0
Build : -1
Revision : -1
MajorRevision : -1
MinorRevision : -1
我還沒有測試所有功能是否有效,因為如果沒有 -completion,它會有點無聊TAB。還有其他人像這樣運行 Powershell,並且可以報告成功/限制/安裝增強嗎?
我有一個未使用的 Windows Pro 許可證,因此我認為自己已獲得許可。我是不是該?
前那出現評論:這樣做的主要目的是在我的 tmux 選項卡之一中運行 powershell 到 Windows 計算機的 PS-Remote-Session,其次是我對面向對象的 shell 範例以及現有 Windows 管理庫的興趣可用於powershell的工具。