{"record":{"id":"53f708d60ce72320","repo":"SeleniumHQ/selenium","slug":"can-only-be-installed-in-windows-with-administr","errorCode":null,"errorMessage":"{} can only be installed in Windows with administrator permissions","messagePattern":"(.+?) can only be installed in Windows with administrator permissions","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"rust/src/lib.rs","lineNumber":347,"sourceCode":"                browser_version,\n                browser_binary_path.display(),\n                location_note\n            ));\n            self.set_browser_path(path_to_string(&browser_binary_path));\n            let cache_path = self.get_cache_path()?;\n            let mut metadata = get_metadata(self.get_logger(), &cache_path);\n            update_cached_asset(\n                &mut metadata.cached_assets,\n                self.get_browser_name(),\n                &browser_version,\n            );\n            write_metadata(&metadata, self.get_logger(), cache_path);\n            return Ok(Some(browser_binary_path));\n        }\n\n        // Browser not available, download it\n        if WINDOWS.is(self.get_os()) && self.is_edge() && !self.is_windows_admin() {\n            return Err(anyhow!(format_one_arg(\n                NOT_ADMIN_FOR_EDGE_INSTALLER_ERR_MSG,\n                self.get_browser_name(),\n            )));\n        }\n\n        let browser_path_in_cache = self.get_browser_path_in_cache()?;\n        let mut lock = Lock::acquire(self.get_logger(), &browser_path_in_cache, None)?;\n        // If lock file was deleted, another process held it and released (deleting the file).\n        // Check if that process already downloaded the browser.\n        if !lock.exists() && browser_binary_path.exists() {\n            self.get_logger().debug(format!(\n                \"{} {} now available at {}\",\n                self.get_browser_name(),\n                browser_version,\n                browser_binary_path.display()\n            ));\n            self.set_browser_path(path_to_string(&browser_binary_path));\n            return Ok(Some(browser_binary_path.clone()));","sourceCodeStart":329,"sourceCodeEnd":365,"githubUrl":"https://github.com/SeleniumHQ/selenium/blob/aa36b38e696a0909e973bdf5e2f9031ffe842c4b/rust/src/lib.rs#L329-L365","documentation":"Error \"{} can only be installed in Windows with administrator permissions\" thrown in SeleniumHQ/selenium.","triggerScenarios":"Thrown at rust/src/lib.rs:347 when the library encounters an invalid state.","commonSituations":"Occurs when installing a component on Windows that requires elevated rights. Re-run the command from an Administrator terminal.","solutions":["Re-run Selenium Manager from an elevated (administrator) command prompt on Windows","Install Edge manually and pass --browser-path to skip the installer","Use a different browser that does not require an elevated installer"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"aa36b38e696a0909e973bdf5e2f9031ffe842c4b","analyzedAt":"2026-08-14T02:32:32.244Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}