Skip to content

Commit 777ddf4

Browse files
authored
fix(bundler): unset NSISDIR and NSISCONFDIR when running makensis (#8376)
closes #8359
1 parent 327c7ae commit 777ddf4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changes/bundler-nsis-nsisdir.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-bundler': 'patch:bug'
3+
---
4+
5+
Unset `NSISDIR` and `NSISCONFDIR` when running `makensis.exe` so it doesn't conflict with NSIS installed by the user.

tooling/bundler/src/bundle/windows/nsis.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ fn build_nsis_app_installer(
457457
_ => "-V4",
458458
})
459459
.arg(installer_nsi_path)
460+
.env_remove("NSISDIR")
461+
.env_remove("NSISCONFDIR")
460462
.current_dir(output_path)
461463
.piped()
462464
.context("error running makensis.exe")?;

0 commit comments

Comments
 (0)