Skip to content

Commit 44f10e9

Browse files
committed
fix(nsis): per-machine installer not requesting elevation when run by non-admin users
1 parent 916aeaa commit 44f10e9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
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+
Fix NSIS per-machine installer not requesting elevation when run by non-admin users.

crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ VIAddVersionKey "ProductVersion" "${VERSION}"
9595

9696
; Handle install mode, `perUser`, `perMachine` or `both`
9797
!if "${INSTALLMODE}" == "perMachine"
98-
RequestExecutionLevel highest
98+
RequestExecutionLevel admin
9999
!endif
100100

101101
!if "${INSTALLMODE}" == "currentUser"

0 commit comments

Comments
 (0)