cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ShardulNayak
Level 2

Determine PC type (Laptop, Notebook or Desktop)

Hi All,

Is there any built-in function or variable in the Install Shield (2016 or earlier versions too) that contains the type of the platform?
I have to call different executable (actually a VGA driver) from script depends on the platform type( Desktop or Laptop ).

I know that the Win32_SystemEnclosure WMI class has a ChassisTypes member that contains 3 if the current machine is a Desktop and 9 if Laptop and 10 if Notebook.
But I hope that an easier solution exists in the Install Shield to get this information.

Thanks,
Labels (1)
0 Kudos
(1) Reply
UtsabKarmakar
Level 5 Flexeran
Level 5 Flexeran

Hi @ShardulNayak,

 

Unfortunately there are no in-build function from InstallShield, and Win32_SystemEnclosure class/wmic is the only way to get the Chassis related information. 

If required https://blogs.technet.microsoft.com/brandonlinton/2017/09/15/updated-win32_systemenclosure-chassis-types/ contains all the chassis types.

 

Thanks

0 Kudos