{"record":{"id":"f8fbe29d72274dc8","repo":"DioxusLabs/dioxus","slug":"wix-fragment-file-not-found","errorCode":null,"errorMessage":"WiX fragment file not found: {}","messagePattern":"WiX fragment file not found: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/windows.rs","lineNumber":236,"sourceCode":"                    \"Failed to read custom WiX template: {}\",\n                    template_path.display()\n                )\n            })?\n        } else {\n            WIX_TEMPLATE.to_string()\n        };\n\n        let wxs_content =\n            render_template(&wix_template, &data).context(\"Failed to render WiX template\")?;\n\n        let wxs_path = output_dir.join(format!(\"{product_name}.wxs\"));\n        std::fs::write(&wxs_path, &wxs_content).context(\"Failed to write WiX source file\")?;\n\n        let mut fragment_wxs_paths = Vec::new();\n        for fragment in &wix_settings.fragment_paths {\n            let frag_path = self.crate_dir().join(fragment);\n            if !frag_path.exists() {\n                bail!(\"WiX fragment file not found: {}\", frag_path.display());\n            }\n            fragment_wxs_paths.push(frag_path);\n        }\n\n        tracing::info!(\"Running candle.exe to compile WiX source...\");\n        let wixobj_path = output_dir.join(format!(\"{product_name}.wixobj\"));\n\n        let mut candle_cmd = Command::new(&candle);\n        candle_cmd\n            .arg(\"-arch\")\n            .arg(wix_arch)\n            .arg(\"-o\")\n            .arg(&wixobj_path)\n            .arg(&wxs_path);\n\n        if wix_settings.fips_compliant {\n            candle_cmd.arg(\"-fips\");\n        }","sourceCodeStart":218,"sourceCodeEnd":254,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/windows.rs#L218-L254","documentation":"bundle_windows_msi referenced a WiX fragment file path from wix_settings.fragment_paths that does not exist on disk. The MSI build cannot compile without all declared fragments, so the bundler bails with the missing path.","triggerScenarios":"Thrown at packages/cli/src/bundler/windows.rs:236 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The WiX fragment file is missing. Regenerate the bundle configuration or restore the fragment file."],"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"}