https://bugs.winehq.org/show_bug.cgi?id=41384
Bug ID: 41384 Summary: Office 2010: Activation doesn't work after wine-staging 1.9.3 Product: Wine-staging Version: 1.9.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jvtr@f.fxnxs.com CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de Distribution: ---
After comparing logs between wine-staging versions 1.9.3 and 1.9.4 I have realized an unsuccessful call happening to SetupDiGetDeviceRegistryProperty with property value 1 (SPDRP_HARDWAREID). HardwareId is not present, because the patch <b>setupapi-Display_Device/0001-setupapi-Create-registry-keys-for-display-devices-an.patch</b> creates keys for the display device (create_display_keys) without HardwareID value. Before the patch there was no device info and thus no calls from application to get that property.
Workaround is simple - create registry value HardwareID of type REG_MULTI_SZ with value "PCI\VEN_0000&DEV_0000" (to be honest I don't know what constitutes the right values) in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\PCI\VEN_0000&DEV_0000\13&12345&0. It can even be empty for the activation to work.
example registry file:
REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\PCI\VEN_0000&DEV_0000\13&12345&0] "HardwareId"=hex(7):50,43,49,5c,56,45,4e,5f,30,30,30,30,26,44,45,56,5f,30,30,\ 30,30,00,00,00,00
Tested with Microsoft Word 2010 version 14.0.7015.1000.