zed-industries/zed · error
failed to start installer
Error message
failed to start installer: {:?} What it means
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.
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
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/auto_update/src/auto_update.rs:1308 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/54971d2aadcd5ec9.
Report an issue: GitHub.
Appendix: source
Thrown at crates/auto_update/src/auto_update.rs:1319
.parent()
.context("No parent dir for Zed.exe")?
.to_owned();
// keep in sync with crates/auto_update_helper/src/updater.rs
_ = smol::fs::remove_dir(parent.join("updates")).await;
_ = smol::fs::remove_dir(parent.join("install")).await;
_ = smol::fs::remove_dir(parent.join("old")).await;
Ok(())
}
async fn install_release_windows(downloaded_installer: &Path) -> Result<Option<PathBuf>> {
let mut cmd = new_command(downloaded_installer);
cmd.arg("/verysilent")
.arg("/update=true")
.arg("/MERGETASKS=!desktopicon");
let output = cmd.output().await?;
anyhow::ensure!(
output.status.success(),
"failed to start installer: {:?}",
String::from_utf8_lossy(&output.stderr)
);
// We return the path to the update helper program, because it will
// perform the final steps of the update process, copying the new binary,
// deleting the old one, and launching the new binary.
let helper_path = std::env::current_exe()?
.parent()
.context("No parent dir for Zed.exe")?
.join("tools")
.join("auto_update_helper.exe");
Ok(Some(helper_path))
}
pub async fn finalize_auto_update_on_quit() {
let Some(installer_path) = std::env::current_exe()
.ok()View on GitHub (pinned to 916fc2b8cb)