mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +00:00
Fix bug 9961
remove the error message for not finding a pdf viewer (apparently empty string is returned by FindExecutable if the executable is a Windows Store app). If there is really no pdf viewer, let the Windows itself decide what to do (produce error or not and which one).
This commit is contained in:
parent
649755f481
commit
aaca6b24f1
@ -78,12 +78,6 @@ Section "View PDF file"
|
|||||||
StrCpy $ViewerFileName $0
|
StrCpy $ViewerFileName $0
|
||||||
${GetFileName} $ViewerFileName $Viewer
|
${GetFileName} $ViewerFileName $Viewer
|
||||||
|
|
||||||
${If} $Viewer == ""
|
|
||||||
MessageBox MB_OK|MB_ICONEXCLAMATION "No PDF viewer is installed. \
|
|
||||||
Please install a PDF viewer such as Adobe Reader."
|
|
||||||
Quit
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
${if} $Viewer == "AcroRd32.exe"
|
${if} $Viewer == "AcroRd32.exe"
|
||||||
${orif} $Viewer == "AcroRd64.exe"
|
${orif} $Viewer == "AcroRd64.exe"
|
||||||
${orif} $Viewer == "Acrobat.exe"
|
${orif} $Viewer == "Acrobat.exe"
|
||||||
|
Loading…
Reference in New Issue
Block a user