[bug] inconsistency between nsis and wix bundle
Describe the bug
The Wix bundles all binaries in the target/release folder, including DLLs; while nsis doesn't.
https://github.com/tauri-apps/tauri/blob/1c53640ac3d05650fdf8db6da9b04d594491dd54/crates/tauri-bundler/src/bundle/windows/msi/main.wxs#L156-L160
Reproduction
Add ort = { version = "=2.0.0-rc.9", features = ["cuda"] to Cargo.toml.
ort will download the ONNXRuntime DLLs and copy them to target/debug.
Then run bun tauri build.
Expected behavior
The behavior between nsis and wix should be consistent.
Full tauri info output
$ tauri info
[✔] Environment
- OS: Windows 10.0.26100 x86_64 (X64)
✔ WebView2: 136.0.3240.92
✔ MSVC:
- Visual Studio Build Tools 2022
- Visual Studio Community 2022
✔ rustc: 1.87.0 (17067e9ac 2025-05-09)
✔ cargo: 1.87.0 (99624be96 2025-05-06)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- bun: 1.2.14
[-] Packages
- tauri 🦀: 2.5.1
- tauri-build 🦀: 2.2.0
- wry 🦀: 0.51.2
- tao 🦀: 0.33.0
- @tauri-apps/api : not installed!
- @tauri-apps/cli : 2.5.0
[-] Plugins
- tauri-plugin-opener 🦀: 2.2.6, (outdated, latest: 2.2.7)
- @tauri-apps/plugin-opener : not installed!
- tauri-plugin-persisted-scope 🦀: 2.2.1, (outdated, latest: 2.2.2)
- @tauri-apps/plugin-persisted-scope : not installed!
- tauri-plugin-store 🦀: 2.2.0
- @tauri-apps/plugin-store : not installed!
- tauri-plugin-log 🦀: 2.4.0
- @tauri-apps/plugin-log : not installed!
- tauri-plugin-dialog 🦀: 2.2.1, (outdated, latest: 2.2.2)
- @tauri-apps/plugin-dialog : not installed!
- tauri-plugin-fs 🦀: 2.2.1, (outdated, latest: 2.3.0)
- @tauri-apps/plugin-fs : not installed!
- tauri-plugin-notification 🦀: 2.2.2
- @tauri-apps/plugin-notification : not installed!
[-] App
- build-type: bundle
- CSP: default-src * 'unsafe-inline' 'unsafe-eval' data: blob:
- frontendDist: ../next/dist
- devUrl: http://localhost:9000/
- framework: React (Next.js)
- bundler: Webpack
Stack trace
Additional context
No response
you're right and it's a known issue. the wix bundler's behavior is considered wrong so we didn't add it to the nsis one. but changing it in the wix bundler would kindaaa be a breaking change so we have to live with it for now.