generated from ScoopInstaller/BucketTemplate
/
shell.json
62 lines (62 loc) · 2.43 KB
/
shell.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"version": "1.9.15",
"description": "A context menu extender that lets you handpick the items to integrate into Windows File Explorer context menu.",
"homepage": "https://nilesoft.org/",
"license": {
"identifier": "MIT",
"url": "https://ghproxy.com/https://raw.githubusercontent.com/moudey/Shell/main/LICENSE"
},
"url": "https://nilesoft.org/download/shell.exe",
"hash": "98c49e917231cbe67bc51b67d96e1ba2448d1e26e6418d8c0a4792c94eead1a3",
"architecture": {
"32bit": {
"pre_install": [
"if(!(Test-Path \"$persist_dir\\shell.log\")) { New-Item \"$dir\\shell.log\" | Out-Null }",
"Move-Item \"$dir\\shell,3.exe\" \"$dir\\shell.exe\"",
"Move-Item \"$dir\\shell,3.dll\" \"$dir\\shell.dll\"",
"Remove-Item \"$dir\\shell,1.*\"",
"Remove-Item \"$dir\\shell,2.*\""
]
},
"64bit": {
"pre_install": [
"if(!(Test-Path \"$persist_dir\\shell.log\")) { New-Item \"$dir\\shell.log\" | Out-Null }",
"Move-Item \"$dir\\shell,1.exe\" \"$dir\\shell.exe\"",
"Move-Item \"$dir\\shell,1.dll\" \"$dir\\shell.dll\"",
"Remove-Item \"$dir\\shell,2.*\"",
"Remove-Item \"$dir\\shell,3.*\""
]
}
},
"bin": "shell.exe",
"shortcuts": [
[
"shell.exe",
"Nilesoft Shell"
]
],
"persist": [
"shell.log",
"shell.shl"
],
"uninstaller": {
"script": [
"if ($cmd -eq 'uninstall') {",
" $regkey = Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Classes\\Directory\\background\\shellex\\ContextMenuHandlers\\nilesoft.shell' -ErrorAction SilentlyContinue",
" if ($regkey) {",
" if (!(is_admin)) { error 'Admin right is required to unregister nilesoft shell'; break }",
" Invoke-ExternalCommand \"$dir\\shell.exe\" -ArgumentList @('-unregister', '-restart', '-silent') -RunAs | Out-Null",
" if (Get-Process -Name 'shell' -ErrorAction SilentlyContinue) { Start-Sleep -Seconds 2 }",
" }",
"}"
]
},
"innosetup": true,
"checkver": {
"url": "https://nilesoft.org/download",
"regex": "Shell version ([\\d.]+)"
},
"autoupdate": {
"url": "https://nilesoft.org/download/shell.exe"
}
}