Old 24th May 2019, 14:25   #1
meoit
Member
 
Join Date: Oct 2014
Location: $DESKTOP
Posts: 90
Post NSIS how to check if it is laptop/desktop/tablet

Hi guys.

How to check if it is laptop/desktop/tablet.

Thanks.
meoit is offline   Reply With Quote
Old 24th May 2019, 16:43   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,150
WMI maybe? For these types of questions you should ideally do some resource on your own to find a general solution and then port it to NSIS.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 24th May 2019, 18:29   #3
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 334
DeviceTypeTool News

New version of DeviceTypeTool Plug-in released

What's new in version 1.0.0.0
  • Get Device Type (Desktop OR Laptop) With Using method "DeviceType"
Attached Files
File Type: zip DeviceTypeTool 1.0.0.0.zip (58.4 KB, 38 views)
r2du-soft is offline   Reply With Quote
Old 24th May 2019, 19:13   #4
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 334
Quote:
Originally Posted by r2du-soft View Post
DeviceTypeTool News

New version of DeviceTypeTool Plug-in released

What's new in version 1.0.0.0
  • Get Device Type (Desktop OR Laptop) With Using method "DeviceType"

Actually You should test the application on a laptop without battery (Directly into AC power) and with a battery,To Make sure the program is functioning correctly...
r2du-soft is offline   Reply With Quote
Old 25th May 2019, 00:42   #5
meoit
Member
 
Join Date: Oct 2014
Location: $DESKTOP
Posts: 90
Thanks @r2du-soft

Would you port this plugin to C++ ?.
meoit is offline   Reply With Quote
Old 25th May 2019, 10:05   #6
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 334
Unfortunately I do not have enough information about Clr to rewrite the plugin to C ++
but you can use this plugin by plugin CLR by command CLR::CALL like my example
r2du-soft is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump