Detect TabletPC

From NSIS Wiki
Jump to navigationJump to search
Author: crdoconnor (talk, contrib)


Note: This detection is now also available in WinVer.nsh

The Script

RequestExecutionLevel User
ShowInstDetails Show
 
Function ".onInit"
System::Call 'user32::GetSystemMetrics(i 86) i .r0'
strcmp $0 0 +1 +3
MessageBox MB_OK|MB_ICONINFORMATION "This is not a tablet PC."
Quit
MessageBox MB_OK|MB_ICONINFORMATION "This is a tablet PC."
FunctionEnd
 
Section
SectionEnd