{"record":{"id":"ebf6c26795b508c0","repo":"DioxusLabs/dioxus","slug":"wix-not-found-and-automatic-downloads-are-disabled","errorCode":null,"errorMessage":"WiX not found and automatic downloads are disabled. Install WiX manually.","messagePattern":"WiX not found and automatic downloads are disabled\\. Install WiX manually\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/tools.rs","lineNumber":151,"sourceCode":"        );\n    }\n\n    #[cfg(unix)]\n    let _ = std::fs::set_permissions(&makensis, std::fs::Permissions::from_mode(0o755));\n\n    Ok(nsis_dir)\n}\n\nasync fn ensure_wix(tools_dir: &Path) -> Result<PathBuf> {\n    let wix_dir = tools_dir.join(\"wix314\");\n    let candle = wix_dir.join(\"candle.exe\");\n\n    if candle.exists() {\n        return Ok(wix_dir);\n    }\n\n    if CliSettings::prefer_no_downloads() {\n        bail!(\"WiX not found and automatic downloads are disabled. Install WiX manually.\");\n    }\n\n    tracing::info!(\"Downloading WiX toolset...\");\n    let data = download_and_verify(WIX_URL, WIX_SHA256, HashAlgo::Sha256).await?;\n\n    std::fs::create_dir_all(&wix_dir)?;\n    extract_zip(&data, &wix_dir)?;\n\n    if !candle.exists() {\n        bail!(\n            \"WiX extraction succeeded but candle.exe not found at {}\",\n            candle.display()\n        );\n    }\n\n    Ok(wix_dir)\n}\n","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/tools.rs#L133-L169","documentation":"ensure_wix could not find candle.exe in the tools cache and automatic downloads are disabled. WiX is required for MSI installers, so the bundler bails asking for a manual install instead of downloading.","triggerScenarios":"Thrown at packages/cli/src/bundler/tools.rs:151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install WiX manually, or enable automatic tool downloads in the dx settings."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}