Windows 无限试用 JetBrains 系列产品
2020 系列
删除 %APPDATA%\JetBrains\<产品名>\eval\*.key
,如 GoLand 2020.1.2
产品就是 GoLand2020.1
PowerShell 脚本
1
2
3
4
5
6
7
8
9
10
11
12
13
| # 修改为系统上安装了的版本
$products = "IntelliJIdea2020.1", "GoLand2020.1", "PyCharm2020.1", "WebStorm2020.1"
foreach ($product in $products) {
$parent = "${ENV:APPDATA}\JetBrains\${product}\eval"
if (Test-Path -Path $parent) {
Write-Host -ForegroundColor Green "Remove:" "$parent\*.key"
Remove-Item "$parent\*.key"
}
else {
Write-Host -ForegroundColor Yellow $parent "Not Found"
}
}
|
2019 以及之前版本
删除 %USERPROFILE%\<.产品名>\config\eval\*.key
如 GoLand 2019.3.1
产品就是 .GoLand2019.3
1
2
3
4
5
6
7
8
9
10
11
12
13
| # 修改为系统上安装了的版本
$products = "GoLand2019.3", "PyCharm2019.3", "WebStorm2019.3"
foreach ($product in $products) {
$parent = "${ENV:USERPROFILE}\.${product}\config\eval"
if (Test-Path -Path $parent) {
Write-Host -ForegroundColor Green "Remove:" "$parent\*.key"
Remove-Item "$parent\*.key"
}
else {
Write-Host -ForegroundColor Yellow $parent "Not Found"
}
}
|
参考