mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-06 00:31:20 +00:00
ghostscript: Add installation of registry (#4703)
This commit is contained in:
parent
9080272a7f
commit
86398b44e6
@ -32,7 +32,25 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"post_install": [
|
||||
"$reg_app = \"HKCU:\\SOFTWARE\\Artifex\\GPL Ghostscript\\$version\"",
|
||||
"$reg_lib = \"HKCU:\\SOFTWARE\\GPL Ghostscript\\$version\"",
|
||||
"if ($global) { $reg_app = $reg_app.Replace('HKCU:','HKLM:'); $reg_lib = $reg_lib.Replace('HKCU','HKLM') }",
|
||||
"$reg_gs_dll = \"$dir\\bin\\gsdll$($architecture.Replace('bit', '')).dll\".Replace('\\','\\\\')",
|
||||
"$reg_gs_lib = \"$dir\\bin;$dir\\lib;$dir\\fonts\".Replace('\\','\\\\')",
|
||||
"New-Item -Path $reg_app -Value $dir.Replace('\\','\\\\') -Force | Out-Null",
|
||||
"New-Item -Path $reg_lib -Value $dir.Replace('\\','\\\\') -Force | Out-Null",
|
||||
"New-ItemProperty -Path $reg_lib -Name 'GS_DLL' -Value $reg_gs_dll -PropertyType String | Out-Null",
|
||||
"New-ItemProperty -Path $reg_lib -Name 'GS_LIB' -Value $reg_gs_lib -PropertyType String | Out-Null"
|
||||
],
|
||||
"env_add_path": "lib",
|
||||
"post_uninstall": [
|
||||
"$reg_app = \"HKCU:\\SOFTWARE\\Artifex\\GPL Ghostscript\\$version\"",
|
||||
"$reg_lib = \"HKCU:\\SOFTWARE\\GPL Ghostscript\\$version\"",
|
||||
"if ($global) { $reg_app = $reg_app.Replace('HKCU:','HKLM:'); $reg_lib = $reg_lib.Replace('HKCU','HKLM') }",
|
||||
"Remove-Item -Path $reg_app -Force -Recurse",
|
||||
"Remove-Item -Path $reg_lib -Force -Recurse"
|
||||
],
|
||||
"checkver": {
|
||||
"github": "https://github.com/ArtifexSoftware/ghostpdl-downloads/",
|
||||
"regex": "Ghostscript/GhostPDL ([\\d.]+)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user