generated from ScoopInstaller/BucketTemplate
/
OpenShellMenu-Install.json
43 lines (43 loc) · 1.9 KB
/
OpenShellMenu-Install.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
{
"version": "4.4.191",
"description": "Open-Shell-Menu. Classic style Start Menu for Windows 7, 8, 8.1, 10",
"homepage": "https://open-shell.github.io/Open-Shell-Menu/",
"license": "Freeware",
"url": "https://github.com/Open-Shell/Open-Shell-Menu/releases/download/v4.4.191/OpenShellSetup_4_4_191.exe#/setup.exe",
"hash": "9e9c32badb52444ca8a8726aef7c220ff48de8c7916cdfdca4dff6e009ac1f0c",
"##": "Assert-Administrator",
"pre_install": [
"$processname = \"StartMenu\"",
"$process = Get-Process $processname -ErrorAction SilentlyContinue",
"if ($process) {",
" $process.CloseMainWindow()",
" Start-Sleep -Seconds 5",
" if (!$process.HasExited) {",
" Start-Sleep -Seconds 25",
" $process | Stop-Process -Force",
" }",
"}"
],
"installer": {
"script": [
"$programname = \"Open-Shell*\"",
"$ProgramFiles = [Environment]::GetFolderPath(\"ProgramFiles\")",
"$filepath = \"$ProgramFiles\\Open-Shell\\StartMenu.exe\"",
"if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))",
"{",
" &\"$dir\\setup.exe\" /qn ADDLOCAL=StartMenu /norestart | Out-Null",
" if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))",
" {",
" exit 1",
" }",
"}",
"if (Test-Path -Path \"$dir\\setup.exe\") { Remove-Item \"$dir\\setup.exe\" -Force }"
]
},
"checkver": {
"github": "https://github.com/Open-Shell/Open-Shell-Menu"
},
"autoupdate": {
"url": "https://github.com/Open-Shell/Open-Shell-Menu/releases/download/v$version/OpenShellSetup_$underscoreVersion.exe#/setup.exe"
}
}