Archive: Model motherboard


Model motherboard
Hello,

it's possible to found the model of the motherboard?
Depending on the model, I need to install and copy different files...

Thanks in advance for your help.


You probably have to use WMI...


WMI header : http://nsis.sourceforge.net/WMI_header

OutFile MB_Model.exe
!include WMI.nsh

Section
${WMIGetInfo} root\CIMV2 Win32_BaseBoard Product callback_Function
SectionEnd

Function callback_Function
#$R0 = result number, $R1 = total results, $R2 = result name
;sometimes required :
;System::Call "user32::OemToChar(t R2, t. r2)"
detailprint "MB Model : $2"
FunctionEnd

Thanks a lot, it wokrs.