安装Waves出错:Waves Central cannot access PowerShell

我的系统信息

系统信息20250731-973

问题复现

问题出现

很简单,就是安装成功了,但启动的时候有问题,启动软件的时候弹出这个界面,表示Powershell终端没权限或者说是其他问题。

Waves安装错误Error20250730-113

查出问题根源

实际上我查出来的问题是我的Powershell开启了历史命令只能预测,但这个只能命令预测在Waves启动的时候使用命令时加载了PSReadLine 模块,改变了Powershell的预测行为,在安装程序调用的非交互式会话中,这种增强功能可能导致意外行为,或者有可能是PSReadLine 模块和Waves的某个文件有冲突了。

解决问题

找到Powershell配置文件

C:\Users\{当前用户名}\Documents\WindowsPowerShell,找到该路径,右键编辑Microsoft.PowerShell_profile.ps1文件

image-20250801214245030

注释代码

将以下9-10两行代码注释掉

1
2
3
4
5
6
7
8
9
10
# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward

# auto suggestions
# Import-Module PSReadLine
# Set-PSReadLineOption -PredictionSource History

image-20250801214425880

重新打开Waves Central软件或者重新安装即可

本文章来源于我的博客:https://blog.hikki.site