File instlux-uefi-detect.patch of Package instlux
diff -Naru instlux-SVN62_orig/instlux/src/instlux_template_en.nsi instlux-SVN62/instlux/src/instlux_template_en.nsi
--- instlux-SVN62_orig/instlux/src/instlux_template_en.nsi 2014-06-01 13:06:36.874568200 +0900
+++ instlux-SVN62/instlux/src/instlux_template_en.nsi 2014-06-01 13:06:06.314568200 +0900
@@ -253,6 +253,19 @@
StrCpy $BcdEdit "bcdedit"
${EndIf}
+ ; check whether UEFI boot mode is activated or not
+ ExpandEnvStrings $0 %COMSPEC%
+ nsExec::ExecToStack '"$0" /C "$BcdEdit /enum bootmgr | findstr /I ^path | findstr /I \.efi$"'
+ Pop $1
+ Pop $1
+ StrLen $0 $1
+ ${If} $0 > 0
+ MessageBox MB_OK|MB_ICONSTOP \
+ "This computer currently uses an UEFI boot mode, but it is not supported by this software. Please use the DISTRO install media (CD, DVD, etc.) instead to install."
+ nsExec::Exec "$c\DISTRO-uninst.exe"
+ Quit
+ ${EndIf}
+
ReadRegStr $0 HKLM "Software\DISTRO\DISTRO-Installer Loader" "bootmgr"
${If} $0 == ""
nsExec::ExecToStack '"$BcdEdit" /create /d "BOOT_TITLE" /application bootsector'