http://bugs.winehq.org/show_bug.cgi?id=18732
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #1 from Anastasius Focht focht@gmx.net 2009-06-01 10:26:47 --- Hello,
to check for "Tablet PC" enabled OS, the msi installer runs a custom action:
--- snip --- 0037:trace:msi:HANDLE_CustomType1 Calling function L"IsTabletPC" from L"C:\windows\temp\msi600b.tmp" ... 0039:trace:msi:ACTION_CallDllFunction calling L"IsTabletPC" 0039:Call KERNEL32.GetEnvironmentVariableW(659f6924 L"MsiBreak",0070e654,00000104) ret=6599301f 0039:Ret KERNEL32.GetEnvironmentVariableW() retval=00000000 ret=6599301f 0039:Call user32.GetSystemMetrics(00000056) ret=0071265d 0039:Ret user32.GetSystemMetrics() retval=00000000 ret=0071265d 0039:Call msi.MsiSetPropertyW(00000002,007111ec L"IsTabletPC",00711204 L"0") ret=00712679 ... --- snip ---
Having Wine to return non-zero for GetSystemMetrics(SM_TABLETPC) is sufficient to convince the installer into proceeding further.
See: http://msdn.microsoft.com/en-us/library/ms724385.aspx
--- quote --- Nonzero if the current operating system is the Windows XP Tablet PC edition or if the current operating system is Windows Vista or Windows 7 and the Tablet PC Input service is started; otherwise, 0. The SM_DIGITIZER setting indicates the type of digitizer input supported by a device running Windows 7 or Windows Server 2008 R2. For more information, see Remarks. --- quote ---
The custom action check seems also to match with what Micro$oft documents. MSDN: http://msdn.microsoft.com/en-us/library/ms724833.aspx
(Search for GetSystemMetrics there).
So adding "Tablet PC" feature (maybe using registry key) might be an interesting option. GetSystemMetrics(SM_TABLETPC) could then use this registry setting for appropriate return value.
Regards