From e53d75d031ba2d7b1de82f7ad0c5df47215488d5 Mon Sep 17 00:00:00 2001 From: Io Chen Date: Thu, 13 Jun 2024 21:36:06 +0800 Subject: [PATCH] avisynth_filter: change installer and uninstaller scripts --- bucket/avisynth_filter.json | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/bucket/avisynth_filter.json b/bucket/avisynth_filter.json index 364a755..12f0815 100644 --- a/bucket/avisynth_filter.json +++ b/bucket/avisynth_filter.json @@ -7,27 +7,26 @@ "hash": "082db652513a931ffc81c173d266f87c39afbdb00eb8b6d2e66e25c50acf3fa0", "installer": { "script": [ - "if (-not ((Get-Command sudo) -or $global) ) {Write-Host \"Install globally please\"}", "if ($architecture -eq \"64bit\") {", - " sudo regsvr32 /s \"$dir\\avisynth_filter_64.ax\"", - " sudo regsvr32 /s \"$dir\\vapoursynth_filter_64.ax\"", + " Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\avisynth_filter_64.ax -Verb RunAs -Wait", + " Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\vapoursynth_filter_64.ax -Verb RunAs -Wait", "}", "elseif ($architecture -eq \"32bit\") {", - " sudo regsvr32 /s \"$dir\\avisynth_filter_32.ax\"", - " sudo regsvr32 /s \"$dir\\vapoursynth_filter_32.ax\"", + " Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\avisynth_filter_32.ax -Verb RunAs -Wait", + " Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\vapoursynth_filter_32.ax -Verb RunAs -Wait", "}", "else {", - " Write-Host \"No appropriate version\"", - " break", + " Write-Host \"No appropriate version\"", + " break", "}" ] }, "uninstaller": { "script": [ - "sudo regsvr32 /s /u \"$dir\\avisynth_filter_64.ax\"", - "sudo regsvr32 /s /u \"$dir\\vapoursynth_filter_64.ax\"", - "sudo regsvr32 /s /u \"$dir\\avisynth_filter_32.ax\"", - "sudo regsvr32 /s /u \"$dir\\vapoursynth_filter_32.ax\"" + "Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\avisynth_filter_64.ax -Verb RunAs -Wait", + "Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\vapoursynth_filter_64.ax -Verb RunAs -Wait", + "Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\avisynth_filter_32.ax -Verb RunAs -Wait", + "Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\vapoursynth_filter_32.ax -Verb RunAs -Wait" ] }, "checkver": {