Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure installer runs OpenXcom as non-admin
  • Loading branch information
SupSuper committed Dec 31, 2019
1 parent b995707 commit 5810173
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install/win/installer.nsi
Expand Up @@ -104,15 +104,19 @@
!insertmacro MUI_PAGE_INSTFILES

;Finish Page Configuration
!define MUI_FINISHPAGE_RUN "$INSTDIR\OpenXcom.exe"
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION RunAsUser
!define MUI_FINISHPAGE_NOREBOOTSUPPORT

!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_COMPONENTS
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES


Function RunAsUser
ShellExecAsUser::ShellExecAsUser "open" "$INSTDIR\OpenXcom.exe"
FunctionEnd

${StrStr}
Function ExtraOptions
Expand Down

0 comments on commit 5810173

Please sign in to comment.