Skip to content

Commit 4f0d639

Browse files
committed
calibre: Update post_install & uninstaller scripts
1 parent 67ae270 commit 4f0d639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bucket/calibre.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"post_install": [
4848
"$calibre_path = (Join-Path -Path $dir -ChildPath 'Calibre') -replace '\\\\', '\\\\'",
49-
"Get-ChildItem -Path \"$bucketsdir\\extras\\scripts\\$app\" -Filter '*.reg' -File | ForEach-Object {",
49+
"Get-ChildItem -Path \"$bucketsdir\\$bucket\\scripts\\$app\" -Filter '*.reg' -File | ForEach-Object {",
5050
" $content = Get-Content -Path $_.FullName -Encoding utf8",
5151
" if ($_.Name -ne 'unregister-file-associations.reg' `",
5252
" -and $global) { $content = $content -replace 'HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE' }",
@@ -118,8 +118,8 @@
118118
"uninstaller": {
119119
"script": [
120120
"if ($cmd -eq 'uninstall') {",
121-
" reg import \"$dir\\unregister-url-handler.reg\"",
122-
" reg import \"$dir\\unregister-file-associations.reg\"",
121+
" reg import \"$dir\\unregister-url-handler.reg\" *> $null",
122+
" reg import \"$dir\\unregister-file-associations.reg\" *> $null",
123123
"}"
124124
]
125125
},

0 commit comments

Comments
 (0)