@Ultra Male, just a head's up, that file was uploaded as an mp4, I ended up renaming the file in order for it to work.
oh thanks for the heads up, I uploaded it as is in the .reg extension. Maybe that file sharing site changed it. Anyway, it should work if you rename the extension to .reg as you said. Thanks again. PS: I just changed the link to another site, that should work fine.
Code: Windows Registry Editor Version 5.00 ; Add Install Command to Right Click .CAB Files [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CABFolder\shell\runas] @="Install this update" "HasLUAShield"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CABFolder\shell\runas\command] @="cmd /k dism /online /add-package /packagepath:\"%1\""
Note to these Reg entries: I had to uncheck association for .cab files in 7-Zip and (possibly) in WinRAR, in order to make this Install entry appear. As long as 7-Zip/WinRAR has an association to the .cab extension, it strangely does not show up.
yes that's right, have my winrar synonymous set so, otherwise he has not seen the Reg entries in the context menu
It's not hard to script Code: @echo off for /f "tokens=2*" %%a in ('reg query HKCR\.cab ^| findstr \(') do set "_cab=%%b" reg delete "HKCR\%_cab%\Shell\RunAs" /f 2>nul reg add "HKCR\%_cab%\Shell\RunAs" /v "" /d Install reg add "HKCR\%_cab%\Shell\RunAs" /v HasLUAShield /d "" reg add "HKCR\%_cab%\Shell\RunAs\Command" /v "" /d "cmd /k dism /online /add-package /packagepath:\"%%1\"" pause