Skip to content

Commit 5cce1b4

Browse files
authored
pdfgear: Update to version 2.1.15, add file associations (#17676)
1 parent c7dee9c commit 5cce1b4

3 files changed

Lines changed: 59 additions & 5 deletions

File tree

bucket/pdfgear.json

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,52 @@
11
{
2-
"version": "2.1.14",
3-
"description": "Read, edit, convert, merge, and sign PDFs across devices for free, no registration required.",
2+
"version": "2.1.15",
3+
"description": "A free, cross-platform PDF application that allows you to read, edit, convert, and merge documents across devices without requiring registration.",
44
"homepage": "https://www.pdfgear.com",
55
"license": {
66
"identifier": "Freeware",
77
"url": "https://www.pdfgear.com/end-user-license-agreement/"
88
},
9+
"notes": [
10+
"To register file associations, please execute the following command:",
11+
"reg import \"$dir\\install-associations.reg\""
12+
],
913
"architecture": {
1014
"64bit": {
11-
"url": "https://downloadfiles.pdfgear.com/releases/windows/pdfgear_setup_v2.1.14.exe",
12-
"hash": "b668557a3874cc6d0775d1b4375b23908226f7af4f84515f3f4791b7d0809d13"
15+
"url": "https://downloadfiles.pdfgear.com/releases/windows/pdfgear_setup_v2.1.15.exe",
16+
"hash": "3a37578a08e0723b1bd101482c9e3cfa8f4add4f8854ec0187fc5cf2bfef9fe2"
1317
}
1418
},
1519
"innosetup": true,
20+
"post_install": [
21+
"$pdfgear_dir = $dir -replace '\\\\', '\\\\'",
22+
"Get-ChildItem -Path \"$bucketsdir\\$bucket\\scripts\\$app\" -Filter '*.reg' -File | ForEach-Object {",
23+
" $content = Get-Content -Path $_.FullName -Encoding utf8",
24+
" if ($global) { $content = $content -replace 'HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE' }",
25+
" $content -replace '{{pdfgear_dir}}', $pdfgear_dir | Set-Content -Path \"$dir\\$($_.Name)\" -Encoding unicode",
26+
"}"
27+
],
28+
"bin": [
29+
"pdfeditor.exe",
30+
"PDFLauncher.exe",
31+
"pdfconverter.exe"
32+
],
1633
"shortcuts": [
1734
[
1835
"PDFLauncher.exe",
1936
"PDFgear"
2037
]
2138
],
39+
"uninstaller": {
40+
"script": [
41+
"if ($cmd -ne 'uninstall') { return }",
42+
"Get-ChildItem -Path $dir -Filter 'un*.reg' -File | ForEach-Object -Process {",
43+
" $registry_file = '\"{0}\"' -f $_.FullName",
44+
" Start-Process -FilePath 'reg.exe' -ArgumentList @('import', $registry_file) -WindowStyle Hidden -Wait",
45+
"}"
46+
]
47+
},
2248
"checkver": {
23-
"url": "https://www.pdfgear.com/pdfgear-for-windows",
49+
"url": "https://www.pdfgear.com/js/jquery.common.js",
2450
"regex": "pdfgear_setup_v([\\d.]+)\\.exe"
2551
},
2652
"autoupdate": {
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Windows Registry Editor Version 5.00
2+
3+
[HKEY_CURRENT_USER\Software\Classes\.pdf\OpenWithProgIDs]
4+
"PdfGear.App.1"=hex(0):
5+
6+
7+
[HKEY_CURRENT_USER\Software\Classes\PdfGear.App.1]
8+
@="PDF Document"
9+
"AppUserModelID"="PDFgear.PDFgear"
10+
"FriendlyTypeName"="PDF Document"
11+
12+
[HKEY_CURRENT_USER\Software\Classes\PdfGear.App.1\DefaultIcon]
13+
@="\"{{pdfgear_dir}}\\PDFLauncher.exe\",0"
14+
15+
[HKEY_CURRENT_USER\Software\Classes\PdfGear.App.1\shell]
16+
17+
[HKEY_CURRENT_USER\Software\Classes\PdfGear.App.1\shell\open]
18+
"FriendlyAppName"="PDFgear"
19+
"Icon"="\"{{pdfgear_dir}}\\PDFLauncher.exe\",0"
20+
21+
[HKEY_CURRENT_USER\Software\Classes\PdfGear.App.1\shell\open\command]
22+
@="\"{{pdfgear_dir}}\\PDFLauncher.exe\" \"%1\""
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Windows Registry Editor Version 5.00
2+
3+
[HKEY_CURRENT_USER\Software\Classes\.pdf\OpenWithProgIDs]
4+
"PdfGear.App.1"=-
5+
6+
[-HKEY_CURRENT_USER\Software\Classes\PdfGear.App.1]

0 commit comments

Comments
 (0)