diff --git a/bucket/sd-card-formatter.json b/bucket/sd-card-formatter.json index 1cd205713a7052..bfe4058113c71e 100644 --- a/bucket/sd-card-formatter.json +++ b/bucket/sd-card-formatter.json @@ -6,19 +6,19 @@ "identifier": "Freeware", "url": "https://www.sdcard.org/downloads/formatter/sd-memory-card-formatter-for-windows-download/" }, - "url": "https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip", - "hash": "df18843616643f53a613fd536eb4ff05a068de16b2902f48234706a2cfedc374", - "installer": { - "script": [ - "Wait-Process -InputObject (Start-Process \"$dir\\SDCardFormatterv$($version.split('.')[0])_WinEN\\SD Card Formatter $version Setup EN.exe\" -ArgumentList \"/a /s /v/qn /vTARGETDIR=$dir\" -PassThru)", - "Move-Item \"$dir\\program files\\SDA\\SD Card Formatter\\*\" \"$dir\"", - "Get-ChildItem -Recurse \"$dir\" -Exclude ('format_sd.exe', 'SD Card Formatter.exe') | Remove-Item -Recurse" - ] - }, - "bin": [ - "format_sd.exe", - "SD Card Formatter.exe" + "depends": [ + "main/isx", + "main/lessmsi" + ], + "url": "https://www.sdcard.org/downloads/formatter/eula_windows/SD%20Card%20Formatter%20Setup.exe", + "hash": "0243f9adae333f8a158d8137c29a64f411a0c3dc7827715d49483235852db091", + "pre_install": [ + "$null = isx.exe \"$dir/SD%20Card%20Formatter%20Setup.exe\" \"$dir\"", + "$null = lessmsi.exe x \"$dir\\SD%20Card%20Formatter%20Setup_u\\SD Card Formatter Setup.msi\" \"$dir\\\"", + "Move-Item \"$dir/SourceDir/program files/SDA/SD Card Formatter/*\" \"$dir\"", + "Get-ChildItem -Recurse \"$dir\" -Exclude ('format_sd.exe', 'SD Card Formatter.exe') | Remove-Item -Recurse" ], + "bin": "format_sd.exe", "shortcuts": [ [ "SD Card Formatter.exe", @@ -29,6 +29,6 @@ "regex": "SD Memory Card Formatter ([\\d.]+)" }, "autoupdate": { - "url": "https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv$majorVersion_WinEN.zip" + "url": "https://www.sdcard.org/downloads/formatter/eula_windows/SD%20Card%20Formatter%20Setup.exe" } }