honestvip Posted August 15, 2012 Share Posted August 15, 2012 how to discernment between Laptop and Desktop?Commands?or ConditionTHX Link to comment Share on other sites More sharing options...
ricktendo Posted August 15, 2012 Share Posted August 15, 2012 Use conditiongetSystemEnclosureType()=="Laptop"getSystemEnclosureType()=="Desktop" Link to comment Share on other sites More sharing options...
honestvip Posted August 15, 2012 Author Share Posted August 15, 2012 how to use this code ? once ? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 15, 2012 Share Posted August 15, 2012 In the conditions section of the config wizard. Link to comment Share on other sites More sharing options...
honestvip Posted August 29, 2012 Author Share Posted August 29, 2012 my config no detect laptop getSystemEnclosureType()=="Laptop"getSystemEnclosureType()=="Desktop" Link to comment Share on other sites More sharing options...
myselfidem Posted August 29, 2012 Share Posted August 29, 2012 (edited) Inside Configuration Section, select your app and: Dependant of | Architecture Tab and Hardware [scrowl down inside the combo box, and Select: getSystemEnclosuretype()]!If you want you can change the condition manually and write: getSystemEnclosuretype()=="Laptop"Because informations are based on your current Hardware and Operating System!Cheers Edited August 30, 2012 by myselfidem Link to comment Share on other sites More sharing options...
honestvip Posted August 30, 2012 Author Share Posted August 30, 2012 getSystemEnclosuretype()=="Laptop"no detected laptopin condition Hide Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 30, 2012 Share Posted August 30, 2012 (edited) Provide me your wpi install log and I will see what is going on. See the information screen I am providing? Make one of those too please. Edited August 30, 2012 by Kelsenellenelvian Link to comment Share on other sites More sharing options...
myselfidem Posted September 1, 2012 Share Posted September 1, 2012 (edited) Oops, I see now on SystemEnclosureType inside wmi.js !WMI Tasks: Computer Hardware How Can I Determine if a Computer is a Laptop or a Desktop Machine?Regards*Edit: @honestvipYou can try this vbs file. Copy and past this one with notepad and save as SystemEnclosureType.vbsstrComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colChassis = objWMIService.ExecQuery _ ("Select * from Win32_SystemEnclosure") For Each objChassis in colChassis For Each strChassisType in objChassis.ChassisTypes Select Case strChassisType Case 1 Wscript.Echo "Other" Case 2 Wscript.Echo "Unknown" Case 3 Wscript.Echo "Desktop" Case 4 Wscript.Echo "Low Profile Desktop" Case 5 Wscript.Echo "Pizza Box" Case 6 Wscript.Echo "Mini Tower" Case 7 Wscript.Echo "Tower" Case 8 Wscript.Echo "Portable" Case 9 Wscript.Echo "Laptop" Case 10 Wscript.Echo "Notebook" Case 11 Wscript.Echo "Handheld" Case 12 Wscript.Echo "Docking Station" Case 13 Wscript.Echo "All-in-One" Case 14 Wscript.Echo "Sub-Notebook" Case 15 Wscript.Echo "Space Saving" Case 16 Wscript.Echo "Lunch Box" Case 17 Wscript.Echo "Main System Chassis" Case 18 Wscript.Echo "Expansion Chassis" Case 19 Wscript.Echo "Sub-Chassis" Case 20 Wscript.Echo "Bus Expansion Chassis" Case 21 Wscript.Echo "Peripheral Chassis" Case 22 Wscript.Echo "Storage Chassis" Case 23 Wscript.Echo "Rack Mount Chassis" Case 24 Wscript.Echo "Sealed-Case PC" Case Else Wscript.Echo "Unknown" End Select Next Next Testing on your Laptop you must find also the result! Edited September 1, 2012 by myselfidem Link to comment Share on other sites More sharing options...
honestvip Posted September 10, 2012 Author Share Posted September 10, 2012 hi testing in to laptop information SystemEnclosuretype()=="Desktop" Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted September 10, 2012 Share Posted September 10, 2012 Where is the information I requestes? I CANNOT help you without it! Link to comment Share on other sites More sharing options...
Dynaletik Posted September 10, 2012 Share Posted September 10, 2012 (edited) For me on my Laptop, getSystemEnclosureType() is Desktop, too, but getSysPCType() gives me Mobile. So use that one insteadCould you perhaps add those cases you just mentioned myselfidem? (At least the most common ones perhaps)Your .vbs script gives me "Notebook" as result. Thought Laptop and Notebook would be the same. Edited September 10, 2012 by Dynaletik Link to comment Share on other sites More sharing options...
myselfidem Posted September 10, 2012 Share Posted September 10, 2012 Your .vbs script gives me "Notebook" as result. Thought Laptop and Notebook would be the same. Yes!We can read here more informations about Laptop and Notebook:LaptopLaptops are also sometimes called notebook computers, notebooks or netbooks. Link to comment Share on other sites More sharing options...
myselfidem Posted September 12, 2012 Share Posted September 12, 2012 (edited) Could you perhaps add those cases you just mentioned myselfidem? (At least the most common ones perhaps)Done! You can try to apply this changes inside wmi.js and look if it works for you:http://www.msfn.org/...ost__p__1011110Regards Edited September 12, 2012 by myselfidem Link to comment Share on other sites More sharing options...
Dynaletik Posted September 12, 2012 Share Posted September 12, 2012 Yeah, like you said, it says "Notebook" now. Thanks m8. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now