File instlux-windows-me-7-8-svr2008-2008r2-2012-10.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-10-02 10:11:14.903122357 +0900
+++ instlux-SVN62/instlux/src/instlux_template_en.nsi 2014-10-02 10:14:19.031131190 +0900
@@ -178,13 +178,20 @@
StrCmp $R0 '95 OSR2' lbl_Win9x
StrCmp $R0 '98' lbl_Win9x
StrCmp $R0 '98 SE' lbl_Win9x
+ StrCmp $R0 'ME' lbl_Win9x
StrCmp $R0 'NT' lbl_WinNT
StrCmp $R0 '2000' lbl_WinNT
StrCmp $R0 'XP' lbl_WinNT
StrCmp $R0 'XP x64' lbl_WinNT
StrCmp $R0 'Server 2003' lbl_WinNT
StrCmp $R0 'Server 2003 R2' lbl_WinNT
- StrCmp $R0 'Vista' lbl_WinVista lbl_Error
+ StrCmp $R0 'Vista' lbl_WinVista
+ StrCmp $R0 '7' lbl_WinVista
+ StrCmp $R0 '8' lbl_WinVista
+ StrCmp $R0 'Server 2008' lbl_WinVista
+ StrCmp $R0 'Server 2008 R2' lbl_WinVista
+ StrCmp $R0 'Server 2012' lbl_WinVista
+ StrCmp $R0 '10' lbl_WinVista lbl_error
lbl_Error:
MessageBox MB_OK "This operating system (Windows $R0) is not currently supported by the installer."
@@ -219,6 +226,12 @@
; ********** From Debian-Installer Loader - Robert Millan ****************
lbl_WinVista:
+ userInfo::getAccountType
+ pop $0
+ ${If} $0 != "Admin"
+ MessageBox MB_OK "You ($0) have not administrator privileges to complete this operation."
+ Quit
+ ${Endif}
ReadRegStr $0 HKLM "Software\DISTRO\DISTRO-Installer Loader" "bootmgr"
${If} $0 == ""
nsExec::ExecToStack '"bcdedit" /create /d "BOOT_TITLE" /application bootsector'
@@ -425,6 +438,7 @@
StrCmp $R6 '95 OSR2' lbl_Win9x
StrCmp $R6 '98' lbl_Win9x
StrCmp $R6 '98 SE' lbl_Win9x
+ StrCmp $R6 'ME' lbl_Win9x
StrCmp $R6 'NT' lbl_WinNT
StrCmp $R6 '2000' lbl_WinNT
StrCmp $R6 'XP' lbl_WinNT
@@ -432,6 +446,12 @@
StrCmp $R6 'Server 2003' lbl_WinNT
StrCmp $R6 'Server 2003 R2' lbl_WinNT
StrCmp $R6 'Vista' lbl_WinVista
+ StrCmp $R6 '7' lbl_WinVista
+ StrCmp $R6 '8' lbl_WinVista
+ StrCmp $R6 'Server 2008' lbl_WinVista
+ StrCmp $R6 'Server 2008 R2' lbl_WinVista
+ StrCmp $R6 'Server 2012' lbl_WinVista
+ StrCmp $R6 '10' lbl_WinVista
lbl_Win9x:
Delete /REBOOTOK "$c\grub.exe"