Skip to content

Commit f423e02

Browse files
authored
anki-np: Fix installation
Anki's installer does not work with quoted args related: ScoopInstaller/Scoop#5065
1 parent 1eb23d4 commit f423e02

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

bucket/anki-np.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@
1414
},
1515
"installer": {
1616
"script": [
17-
"Invoke-ExternalCommand \"$dir\\installer.exe\" -ArgumentList @('/S', \"/D=$dir\") -RunAs | Out-Null",
17+
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
18+
"Start-Process -Wait \"$dir\\installer.exe\" -ArgumentList @('/S', \"/D=$dir\") -Verb RunAs | Out-Null",
1819
"Remove-Item \"$([Environment]::GetFolderPath('commonstartmenu'))\\Programs\\Anki.lnk\""
1920
]
2021
},
2122
"uninstaller": {
22-
"script": "Invoke-ExternalCommand \"$dir\\uninstall.exe\" -ArgumentList @('/S') -RunAs | Out-Null"
23+
"script": [
24+
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
25+
"Start-Process -Wait \"$dir\\uninstall.exe\" -ArgumentList '/S' -Verb RunAs | Out-Null"
26+
]
2327
},
2428
"bin": "anki.exe",
2529
"shortcuts": [

0 commit comments

Comments
 (0)