Skip to content

Commit f3a655d

Browse files
authored
dokany-np: Fix installation
related: ScoopInstaller/Scoop#5065
1 parent 9a33286 commit f3a655d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

bucket/dokany-np.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@
1414
}
1515
},
1616
"installer": {
17-
"script": "Invoke-ExternalCommand msiexec -ArgumentList @('/i', \"$dir\\setup.msi_\", '/qn', '/norestart') -RunAs -ContinueExitCodes @{ 3010 = 'A system reboot is required to finalize the installation.' } | Out-Null"
17+
"script": [
18+
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
19+
"Start-Process msiexec -ArgumentList @('/i', \"`\"$dir\\setup.msi_`\"\", '/qn', '/norestart') -Wait -Verb RunAs | Out-Null"
20+
]
1821
},
1922
"uninstaller": {
20-
"script": "Invoke-ExternalCommand msiexec -ArgumentList @('/x', \"$dir\\setup.msi_\", '/qn', '/norestart') -RunAs -ContinueExitCodes @{ 3010 = 'A system reboot is required to finalize the uninstallation.' } | Out-Null"
23+
"script": [
24+
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
25+
"Start-Process msiexec -ArgumentList @('/x', \"`\"$dir\\setup.msi_`\"\", '/qn', '/norestart') -Wait -Verb RunAs | Out-Null"
26+
]
2127
},
2228
"checkver": {
2329
"github": "https://github.com/dokan-dev/dokany"

0 commit comments

Comments
 (0)