-
Notifications
You must be signed in to change notification settings - Fork 6
/
ShellRunas.yml
23 lines (23 loc) · 1.19 KB
/
ShellRunas.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: "1.02"
description: ShellRunas. Provides functionality similar to that of Runas to launch programs as a different user via a convenient shell context-menu entry.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/shellrunas
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/ShellRunas.zip
hash: 27170866b14e7f5e3814328fc72433bb77c9cf5f90cae94ec5ba104ce0bbae57
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\ShellRunas - Sysinternals: www.sysinternals.com"
New-Item $sysint, $fin -ErrorAction 'SilentlyContinue' | Out-Null
Set-ItemProperty -Path $fin -Name 'EulaAccepted' -Value 1 -Type 'DWord' -Force | Out-Null
pre_uninstall: |
if ($purge) {
$sysInt = 'HKCU:\SOFTWARE\Sysinternals'
Remove-Item "$sysInt\ShellRunas - Sysinternals: www.sysinternals.com" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
bin: ShellRunas.exe
checkver: ShellRunas\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/ShellRunas.zip