{"record":{"id":"54971d2aadcd5ec9","repo":"zed-industries/zed","slug":"failed-to-start-installer","errorCode":null,"errorMessage":"failed to start installer: {:?}","messagePattern":"failed to start installer: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/auto_update/src/auto_update.rs","lineNumber":1319,"sourceCode":"        .parent()\n        .context(\"No parent dir for Zed.exe\")?\n        .to_owned();\n\n    // keep in sync with crates/auto_update_helper/src/updater.rs\n    _ = smol::fs::remove_dir(parent.join(\"updates\")).await;\n    _ = smol::fs::remove_dir(parent.join(\"install\")).await;\n    _ = smol::fs::remove_dir(parent.join(\"old\")).await;\n\n    Ok(())\n}\n\nasync fn install_release_windows(downloaded_installer: &Path) -> Result<Option<PathBuf>> {\n    let mut cmd = new_command(downloaded_installer);\n    cmd.arg(\"/verysilent\")\n        .arg(\"/update=true\")\n        .arg(\"/MERGETASKS=!desktopicon\");\n    let output = cmd.output().await?;\n    anyhow::ensure!(\n        output.status.success(),\n        \"failed to start installer: {:?}\",\n        String::from_utf8_lossy(&output.stderr)\n    );\n    // We return the path to the update helper program, because it will\n    // perform the final steps of the update process, copying the new binary,\n    // deleting the old one, and launching the new binary.\n    let helper_path = std::env::current_exe()?\n        .parent()\n        .context(\"No parent dir for Zed.exe\")?\n        .join(\"tools\")\n        .join(\"auto_update_helper.exe\");\n    Ok(Some(helper_path))\n}\n\npub async fn finalize_auto_update_on_quit() {\n    let Some(installer_path) = std::env::current_exe()\n        .ok()","sourceCodeStart":1301,"sourceCodeEnd":1337,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/auto_update/src/auto_update.rs#L1301-L1337","documentation":"install_release_windows spawned the downloaded installer executable with silent-update flags (/verysilent /update=true /MERGETASKS=!desktopicon) and either the process could not be started or exited with an embedded failing status; the message carries the spawn/exit details, meaning the installer binary itself failed to launch or complete, not that the download was bad.","triggerScenarios":"Thrown at crates/auto_update/src/auto_update.rs:1308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-download the installer in case the binary was corrupt or blocked by SmartScreen","Run the installer manually to see the UI-level error, then retry auto-update","Check antivirus/lock conditions on the install directory that can prevent the silent installer from starting"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}