|
28 | 28 | * POSSIBILITY OF SUCH DAMAGE. |
29 | 29 | */ |
30 | 30 |
|
31 | | -!ifndef STRINGS_NSH_ |
32 | | -!define STRINGS_NSH_ |
| 31 | +!ifndef RESOURCES_NSH_ |
| 32 | +!define RESOURCES_NSH_ |
33 | 33 |
|
| 34 | +# Strings |
34 | 35 | !define PRODUCT_NAME "HAXM" |
35 | 36 | !define PRODUCT_FULL_NAME "Hardware Accelerated Execution Manager" |
36 | 37 | !define PRODUCT_VERSION "7.6.5" |
37 | 38 | !define PRODUCT_YEAR "2020" |
38 | 39 | !define PRODUCT_PUBLISHER "Intel Corporation" |
39 | 40 | !define PRODUCT_BRAND "Intel${U+00AE}" |
40 | 41 | !define PRODUCT_WEBSITE "https://github.com/intel/haxm" |
| 42 | +!define PRODUCT_WIKIPAGE "/wiki/Windows-System-Configurations" |
41 | 43 | !define PRODUCT_GUID "AAA802A8DF574F4CA0489512D2D91818" |
42 | 44 |
|
43 | 45 | !define PROGRAM_DIR "\Intel\${PRODUCT_NAME}" |
|
60 | 62 | !define DRIVER_WIN7_64 "assets\win7\x64\${DRIVER_FILE}" |
61 | 63 | !define DRIVER_WIN7_32 "assets\win7\x86\${DRIVER_FILE}" |
62 | 64 |
|
63 | | -!define DLG_CHECK_ENV "The system requirements are not satisfied." |
64 | | -!define DLG_DOWNGRADE "The existing version is greater than the version to \ |
| 65 | +!define DLG_SYS_ERROR "The system environment does not meet the \ |
| 66 | + installation requirements." |
| 67 | +!define DLG_GUEST_ERROR "${PRODUCT_NAME} is being used by running virtual \ |
| 68 | + machines now. Please terminate these virtual machine processes first." |
| 69 | +!define DLG_WARNING "The ${PRODUCT_NAME} driver can be installed on this \ |
| 70 | + computer. However, it is required to further configure the system to \ |
| 71 | + make it usable. Then ${PRODUCT_NAME} will be automatically loaded for \ |
| 72 | + use." |
| 73 | +!define DLG_DOWNGRADE "The existing version is greater than the version to \ |
65 | 74 | be installed. Please uninstall the existing version manually before \ |
66 | 75 | proceeding." |
67 | | -!define DLG_REINSTALL "${PRODUCT_NAME} v${PRODUCT_VERSION} has already been \ |
| 76 | +!define DLG_REINSTALL "${PRODUCT_NAME} v${PRODUCT_VERSION} has already been \ |
68 | 77 | installed. Are you sure to continue?" |
69 | | -!define DLG_UNINSTALL "Are you sure you want to remove $(^Name)?" |
70 | | -!define LOG_REINSTALL "To reinstall the current version" |
71 | | -!define LOG_UNINSTALL "To uninstall the current version" |
72 | | -!define LOG_UPGRADE "To upgrade version" |
| 78 | +!define DLG_UNINSTALL "Are you sure you want to remove $(^Name)?" |
| 79 | +!define LOG_REINSTALL "To reinstall the current version" |
| 80 | +!define LOG_UNINSTALL "To uninstall the current version" |
| 81 | +!define LOG_UPGRADE "To upgrade version" |
73 | 82 |
|
74 | | -!endif # STRINGS_NSH_ |
| 83 | +# Constants |
| 84 | +# Environment flags |
| 85 | +!define ENV_FLAG_CPU_SUPPORTED 0x00000001 |
| 86 | +!define ENV_FLAG_VMX_SUPPORTED 0x00000002 |
| 87 | +!define ENV_FLAG_NX_SUPPORTED 0x00000004 |
| 88 | +!define ENV_FLAG_EM64T_SUPPORTED 0x00000008 |
| 89 | +!define ENV_FLAG_EPT_SUPPORTED 0x00000010 |
| 90 | +!define ENV_FLAG_VMX_ENABLED 0x00000100 |
| 91 | +!define ENV_FLAG_NX_ENABLED 0x00000200 |
| 92 | +!define ENV_FLAG_EM64T_ENABLED 0x00000400 |
| 93 | +!define ENV_FLAG_OSVER_SUPPORTED 0x00010000 |
| 94 | +!define ENV_FLAG_OSARCH_SUPPORTED 0x00020000 |
| 95 | +!define ENV_FLAG_HYPERV_DISABLED 0x00040000 |
| 96 | +!define ENV_FLAG_SANDBOX_DISABLED 0x00080000 |
| 97 | +!define ENV_FLAG_GUEST_UNOCCUPIED 0x01000000 |
| 98 | + |
| 99 | +# Hardware supports: |
| 100 | +# ENV_FLAG_CPU_SUPPORTED, ENV_FLAG_VMX_SUPPORTED, ENV_FLAG_NX_SUPPORTED, |
| 101 | +# ENV_FLAG_EM64T_SUPPORTED, ENV_FLAG_EPT_SUPPORTED |
| 102 | +# OS supports: |
| 103 | +# ENV_FLAG_OSVER_SUPPORTED, ENV_FLAG_OSARCH_SUPPORTED |
| 104 | +!define ENV_FLAGS_SYS_SUPPORTED 0x000300ff |
| 105 | +# BIOS settings: |
| 106 | +# ENV_FLAG_VMX_ENABLED, ENV_FLAG_NX_ENABLED, ENV_FLAG_EM64T_ENABLED |
| 107 | +# OS settings: |
| 108 | +# ENV_FLAG_HYPERV_DISABLED, ENV_FLAG_SANDBOX_DISABLED |
| 109 | +!define ENV_FLAGS_HOST_READY 0x00fcff00 |
| 110 | +# Guest status: |
| 111 | +# ENV_FLAG_GUEST_UNOCCUPIED |
| 112 | +!define ENV_FLAGS_GUEST_READY 0xff000000 |
| 113 | + |
| 114 | +# Environment status |
| 115 | +!define ENV_STATUS_READY 0 |
| 116 | +!define ENV_STATUS_UNREADY 1 |
| 117 | +!define ENV_STATUS_INUSE 2 |
| 118 | +!define ENV_STATUS_UNSUPPORTED 3 |
| 119 | + |
| 120 | +!endif # RESOURCES_NSH_ |
0 commit comments