Checking model of PC
Can someone share with knowledge about custom action in MSI, what I need is custom action which checks type of model on XP OS and if it is correct the installs the drivers if not then skips.
I have no idea that there is such but I may think that some of you may know it.
Community Chosen Answer
you can use wmi to get info also
wmic csproduct get name
then use it a a script like:
REM do a wmi query to get the info we want and put it in a variable
FOR /F "tokens=2 delims==" %%A IN ('WMIC csproduct GET Name /VALUE ^| FIND /I "Name="') DO SET machine=%%A
ECHO Computer model: "%machine%"
REM Now we have the model in a variable we can do some logic and run commands, for example...
REM Watch for stray spaces at the end, take out all spaces with: SET machine=%machine: =%
IF /I "%machine%" == "Latitude E6410" (
REM do something specific for an E6410
) ELSE (
REM do something for other types