This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Determine PC type (Laptop, Notebook or Desktop)
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Feb 24, 2019
08:50 AM
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,
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,
(1) Reply
Apr 22, 2019
07:06 AM
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