function SelfUpdateCommand::isWindowsNonAdminUser
Returns true if this is a non-admin Windows user account
1 call to SelfUpdateCommand::isWindowsNonAdminUser()
- SelfUpdateCommand::setLocalPhar in vendor/
composer/ composer/ src/ Composer/ Command/ SelfUpdateCommand.php - Checks if the downloaded/rollback phar is valid then moves it
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ SelfUpdateCommand.php, line 575
Class
- SelfUpdateCommand
- @author Igor Wiedler <igor@wiedler.ch> @author Kevin Ran <kran@adobe.com> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\CommandCode
protected function isWindowsNonAdminUser() : bool {
if (!Platform::isWindows()) {
return false;
}
// fltmc.exe manages filter drivers and errors without admin privileges
exec('fltmc.exe filters', $output, $exitCode);
return $exitCode !== 0;
}