/
mobilepass.json
50 lines (50 loc) · 1.86 KB
/
mobilepass.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
{
"homepage": "https://cpl.thalesgroup.com/access-management/authenticators/mobilepass-otp-download",
"description": "SafeNet MobilePASS",
"version": "8.4.6",
"url": "https://fdsext.gemalto.com/filesSN/Index/79cca6a24fcc41c48a6dc31162a9ee7e#/MobilePASS.exe",
"hash": "5F1CA6076DFE163A220AFE53EC425AF7F4ACB4523D0C9C30F9B62BF1FCD85118",
"bin": [
"MobilePASS.exe",
[
"MobilePASS.exe",
"SafeNet"
]
],
"shortcuts": [
[
"MobilePASS.exe",
"MobilePASS"
]
],
"post_install": [
"$ApplicationData = [Environment]::GetFolderPath(\"ApplicationData\")",
"$linkPath = \"$ApplicationData\\SafeNet\"",
"$targetPath = \"$persist_dir\\AppData\"",
"If(Test-path $targetPath) {",
" If(Test-path $linkPath) {",
" Remove-Item -LiteralPath \"$linkPath\" -Force -Recurse -ErrorAction SilentlyContinue",
" }",
"} else {",
" If(Test-path $linkPath) {",
" md \"$persist_dir\" | out-null",
" Copy-Item -Path \"$linkPath\" -Destination \"$targetPath\" -Recurse",
" Remove-Item -LiteralPath \"$linkPath\" -Force -Recurse -ErrorAction SilentlyContinue",
" } else {",
" md \"$targetPath\" | out-null",
" }",
"}",
"& \"$env:COMSPEC\" /c \"mklink /j `\"$linkPath`\" `\"$targetPath`\"\" | out-null",
"attrib \"$linkPath\" +R /L"
],
"uninstaller": {
"script": [
"$ApplicationData = [Environment]::GetFolderPath(\"ApplicationData\")",
"$linkPath = \"$ApplicationData\\SafeNet\"",
"If(Test-path $linkPath) {",
" attrib $linkPath -R /L",
" & \"$env:COMSPEC\" /c \"rmdir `\"$linkPath`\"\"",
"}"
]
}
}