[Com0com-cvs] com0com/NSIS install.nsi,1.10,1.11
The virtual serial port driver for Windows.
Brought to you by:
vfrolov
From: Vyacheslav F. <vf...@us...> - 2007-11-23 08:23:33
|
Update of /cvsroot/com0com/com0com/NSIS In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14260 Modified Files: install.nsi Log Message: Added popup for uncompatible CPU Index: install.nsi =================================================================== RCS file: /cvsroot/com0com/com0com/NSIS/install.nsi,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** install.nsi 22 Nov 2007 11:36:41 -0000 1.10 --- install.nsi 23 Nov 2007 08:23:29 -0000 1.11 *************** *** 20,23 **** --- 20,26 ---- * * $Log$ + * Revision 1.11 2007/11/23 08:23:29 vfrolov + * Added popup for uncompatible CPU + * * Revision 1.10 2007/11/22 11:36:41 vfrolov * Moved output file to target CPU directory *************** *** 62,65 **** --- 65,69 ---- !include "MUI.nsh" + !include "x64.nsh" ;-------------------------------- *************** *** 84,87 **** --- 88,114 ---- ;-------------------------------- + Function .onInit + ${If} ${RunningX64} + !if "${TARGET_CPU}" == "i386" + MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONEXCLAMATION \ + "The 32-bit driver cannot run under 64-bit System.$\n$\nContinue?" \ + /SD IDNO IDYES end_x64 + Abort + !endif + ${Else} + !if "${TARGET_CPU}" != "i386" + MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONEXCLAMATION \ + "The 64-bit driver cannot run under 32-bit System.$\n$\nContinue?" \ + /SD IDNO IDYES end_x64 + Abort + !endif + ${EndIf} + + end_x64: + + FunctionEnd + + ;-------------------------------- + !macro MoveFileToDetails file |