opencode/packages/desktop/resources/windows/installer.nsh

6 lines
287 B
NSIS

!macro customInstall
; Chromium's sandbox needs read/execute access to the installed runtime files.
; https://github.com/electron/electron/issues/49143#issuecomment-3618354787
nsExec::ExecToLog '"$SYSDIR\icacls.exe" "$INSTDIR" /grant "*S-1-15-2-2:(OI)(CI)(RX)"'
Pop $0
!macroend