File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments