generated from Ash258/GenericBucket
/
DYMOConnect-Install.json
49 lines (49 loc) · 2.29 KB
/
DYMOConnect-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
44
45
46
47
48
49
{
"version": "1.4.3.131",
"description": "DYMO Connect. Label printer software and drivers that supports all with all 450 series/4XL, 550 series/5XL and LabelManagers",
"homepage": "https://www.dymo.com/",
"license": "Proprietary",
"url": "https://s3.amazonaws.com/download.dymo.com/dymo/Software/Win/DCDSetup1.4.3.131.exe#/setup.exe",
"hash": "312d314d201bbd2884085134a4c0b1e2fe3da0a6e12f6ec6a69a61df3436cc8d",
"pre_download": "Assert-Administrator",
"pre_install": [
"$processname = \"processname\"",
"$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 = \"programname*\"",
"$ProgramFiles = [Environment]::GetFolderPath(\"ProgramFilesX86\")",
"$filepath = \"$ProgramFiles\\DYMO\\DYMO Connect\\DYMOConnect.exe\"",
"if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))",
"{",
" &\"$dir\\setup.exe\" /s /v\"/qn\" /v\"REBOOT=ReallySuppress\" /sms | 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 }"
]
},
"post_install": [
"$programname = \"DYMO Connect\"",
"$CommonDesktopPath = [Environment]::GetFolderPath(\"CommonDesktopDirectory\")",
"if (Test-Path \"$CommonDesktopPath\\$programname.lnk\") {Remove-Item \"$CommonDesktopPath\\$programname.lnk\" -Force}"
],
"checkver": {
"url": "https://www.dymo.com/support?cfid=user-guide",
"regex": "https://download.dymo.com/dymo/Software/Win/DCDSetup([\\d.]+).exe"
},
"autoupdate": {
"url": "https://s3.amazonaws.com/download.dymo.com/dymo/Software/Win/DCDSetup$version.exe#/setup.exe"
}
}