/
folder-marker.json
48 lines (48 loc) 路 2.16 KB
/
folder-marker.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
{
"version": "4.8",
"description": "A tool to label folders with color-coded / image-coded icon",
"homepage": "https://foldermarker.com/en/",
"license": "Freeware",
"url": "https://foldermarker.com/FolderMarker_Free.exe",
"hash": "b163d2509d5837b2c4bc43f97df0a9c2a1257da1a7f8262a9edcb335f478f4c9",
"innosetup": true,
"pre_install": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"",
"Rename-Item \"$dir\\icl\\fColors,3.icl\" 'fColors.icl'; Remove-Item \"$dir\\icl\\fColors,*.icl\"",
"Rename-Item \"$dir\\icl\\fMain,3.icl\" 'fMain.icl'; Remove-Item \"$dir\\icl\\fMain,*.icl\"",
"",
"Invoke-ExternalCommand regsvr32 -ArgumentList @(\"$dir\\FMADM.dll\", '/s') -RunAs | Out-Null",
"Invoke-ExternalCommand regsvr32 -ArgumentList @(\"$dir\\ShellExt.dll\", '/s') -RunAs | Out-Null",
"if ($architecture -eq '64bit') {",
" Invoke-ExternalCommand regsvr32 -ArgumentList @(\"$dir\\ShellExt64.dll\", '/s') -RunAs | Out-Null",
"}"
],
"pre_uninstall": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"Invoke-ExternalCommand regsvr32 -ArgumentList @('/u', \"$dir\\FMADM.dll\", '/s') -RunAs | Out-Null",
"Invoke-ExternalCommand regsvr32 -ArgumentList @('/u', \"$dir\\ShellExt.dll\", '/s') -RunAs | Out-Null",
"if ($architecture -eq '64bit') {",
" Invoke-ExternalCommand regsvr32 -ArgumentList @('/u', \"$dir\\ShellExt64.dll\", '/s') -RunAs | Out-Null",
"}",
"# Restart explorer so that ShellExt(-64).dll can be removed",
"Stop-Process -Name 'explorer'; Start-Sleep -Seconds 2",
"if (!(Get-Process -Name 'explorer' -ErrorAction SilentlyContinue)) { Start-Process 'explorer' }"
],
"env_set": {
"FOLDER_MARKER_DIR": "$dir"
},
"shortcuts": [
[
"FolderMarker.exe",
"Folder Marker"
]
],
"checkver": {
"url": "https://foldermarker.com/en/download/",
"regex": "Version\\: ([\\d.]+)</p>"
},
"autoupdate": {
"url": "https://foldermarker.com/FolderMarker_Free.exe"
}
}