Skip to content

Commit

Permalink
Fix error "Windows cannot find 'C'" in installer
Browse files Browse the repository at this point in the history
It seems the ShellExecAsUser.dll plugin is no longer compatible with
Windows 10. See #255.
  • Loading branch information
mherrmann committed Oct 8, 2021
1 parent 9352725 commit 65dac5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fbs/_defaults/src/installer/windows/Installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ FunctionEnd
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_CHECKED
!define MUI_FINISHPAGE_RUN_TEXT "Run ${app_name}"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchAsNonAdmin"
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_CONFIRM
Expand Down Expand Up @@ -108,7 +108,6 @@ Section "Uninstall"

SectionEnd

Function LaunchLink
!addplugindir "."
ShellExecAsUser::ShellExecAsUser "open" "$SMPROGRAMS\${app_name}.lnk"
FunctionEnd
Function LaunchAsNonAdmin
Exec '"$WINDIR\explorer.exe" "$InstDir\${app_name}.exe"'
FunctionEnd
Binary file not shown.

0 comments on commit 65dac5a

Please sign in to comment.