I want to install miktex.install package in my machine by chocolatey. I executed this command
choco install miktex.install --admin
but error occured like below.
ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: initexmf: security risk: running with elevated privileges
Surely, I've run Powershell as administrator and try install command again and again. but privileges error keep going on. If anyone knows a solution to this error, please help. Thanks.
This works fine here, running the commands under the local Administrator account (note that
--adminis not a Chocolatey option so I have not added it):This error is a package error. The installer seesm to be failing when running from the
chocolateyInstall.ps1script, and the script is reporting back the failure.If you are trying to install the latest version, and you are running in an elevated session, my advice would be to contact the package maintainer by clicking 'Contact Package Maintainer' on the Chocolatey package page.