{"record":{"id":"de45c8cd866c056c","repo":"DioxusLabs/dioxus","slug":"nsis-not-found-and-automatic-downloads-are-disable","errorCode":null,"errorMessage":"NSIS not found and automatic downloads are disabled. Install NSIS manually.","messagePattern":"NSIS not found and automatic downloads are disabled\\. Install NSIS manually\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/tools.rs","lineNumber":121,"sourceCode":"            ))\n        }\n    }\n}\n\nasync fn ensure_nsis(tools_dir: &Path) -> Result<PathBuf> {\n    let nsis_dir = tools_dir.join(\"nsis-3.11\");\n    let makensis = if cfg!(target_os = \"windows\") {\n        nsis_dir.join(\"makensis.exe\")\n    } else {\n        nsis_dir.join(\"makensis\")\n    };\n\n    if makensis.exists() {\n        return Ok(nsis_dir);\n    }\n\n    if CliSettings::prefer_no_downloads() {\n        bail!(\"NSIS not found and automatic downloads are disabled. Install NSIS manually.\");\n    }\n\n    tracing::info!(\"Downloading NSIS...\");\n\n    let data = download_and_verify(NSIS_URL, NSIS_SHA1, HashAlgo::Sha1).await?;\n    extract_zip(&data, tools_dir)?;\n\n    if !makensis.exists() {\n        bail!(\n            \"NSIS extraction succeeded but makensis not found at {}\",\n            makensis.display()\n        );\n    }\n\n    #[cfg(unix)]\n    let _ = std::fs::set_permissions(&makensis, std::fs::Permissions::from_mode(0o755));\n\n    Ok(nsis_dir)","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/tools.rs#L103-L139","documentation":"ensure_nsis could not find makensis in the tools cache and the CLI is configured to never download tools. NSIS is required for Windows installers, so the bundler bails instructing a manual install rather than fetching it.","triggerScenarios":"Thrown at packages/cli/src/bundler/tools.rs:121 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install NSIS 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"}