[Bug 45033] Dragon Naturally Speaking 15 installer fails with ' CheckWMIService' returning error 1602 ( needs dummy Windows Management Instrumentation service 'winmgmt')

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 29 19:59:50 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45033

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Dragon Naturally Speaking   |Dragon Naturally Speaking
                   |15 installer fails with     |15 installer fails with
                   |'CheckWMIService' returning |'CheckWMIService' returning
                   |error 1602                  |error 1602 (needs dummy
                   |                            |Windows Management
                   |                            |Instrumentation service
                   |                            |'winmgmt')
          Component|wmi&wbemprox                |programs
             Status|NEEDINFO                    |NEW

--- Comment #9 from Anastasius Focht <focht at gmx.net> ---
Hello Susan,

--- quote ---
I will get you a copy. 
Thank you.
--- quote ---

no need. I found a "backup" of Nuance Dragon Professional Individual 15.x by
myself now. I was searching for 'Dragon Naturally Speaking', unaware of the
different product flavours.

Anyway, relevant part of trace log.

--- snip ---
$ WINEDEBUG=+seh,+relay,+msi,+service,+reg wine ./setup.exe >>log.txt 2>&1
...
0032:Call KERNEL32.CreateProcessW(00000000,001964c4 L"MSIEXEC.EXE /i
\"Z:\\home\\focht\\Downloads\\Dragon\\Dragon 15.msi\" /Liwmoe+
\"C:\\users\\focht\\Temp\\dgnsetup.log\"
SETUPEXEDIR=\"Z:\\home\\focht\\Downloads\\Dragon\"
SETUPEXENAME=\"setup.exe\"",00000000,00000000,00000000,00000020,00000000,00000000,0032c42c,0032c48c)
ret=00465eb8
...
0034:Call KERNEL32.__wine_kernel_init() ret=7bc6c260
0032:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=00465eb8 
...
0034:trace:msi:ACTION_CustomAction Handling custom action L"CheckWMIService" (1
L"ISSetup.dll" L"f95")
0034:trace:msi:HANDLE_CustomType1 Calling function L"f95" from
L"C:\\users\\focht\\Temp\\msi468a.tmp" 
...
0034:trace:msi:wait_thread_handle waiting for L"CheckWMIService" 
...
016b:Starting thread proc 0x7ebab3e0 (arg=0x63796c)
016b:trace:msi:DllThread custom action (16b) started 
...
016b:Call KERNEL32.CreateProcessW(00000000,00fcfe08 L"msiexec.exe -Embedding
{DB5D38D3-B028-479A-9630-86F04007CF8A}",00000000,00000000,00000000,00000000,00000000,00000000,00fcfdb4,00fcfdf8)
ret=7ebab69b
...
017d:Call KERNEL32.__wine_kernel_init() ret=7bc6c260
016b:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=7ebab69b
016b:Call KERNEL32.WaitForSingleObject(00000104,ffffffff) ret=7ebab6af 
...
017d:Call PE DLL (proc=0x10247cef,module=0x10000000
L"msi468a.tmp",reason=PROCESS_ATTACH,res=(nil))
017d:trace:seh:raise_exception code=c0000005 flags=0 addr=0x10247d05
ip=10247d05 tid=017d
017d:trace:seh:raise_exception  info[0]=00000001
017d:trace:seh:raise_exception  info[1]=00000000
017d:trace:seh:raise_exception  eax=00000000 ebx=7bcbe459 ecx=88ed574a
edx=0033f808 esi=0033f7e8 edi=0033fab4
017d:trace:seh:raise_exception  ebp=0033f7e8 esp=0033f7c4 cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00010246
017d:trace:seh:call_stack_handlers calling handler at 0x1024862c code=c0000005
flags=0
017d:trace:seh:call_stack_handlers handler at 0x1024862c returned 0
017d:Call KERNEL32.VirtualAlloc(00000000,000011ac,00001000,00000040)
ret=10248685
017d:Ret  KERNEL32.VirtualAlloc() retval=00470000 ret=10248685
017d:Call KERNEL32.LoadLibraryA(00470fda "kernel32") ret=00470688
017d:Ret  KERNEL32.LoadLibraryA() retval=7b420000 ret=00470688
...
017d:Ret  PE DLL (proc=0x10247cef,module=0x10000000
L"msi468a.tmp",reason=PROCESS_ATTACH,res=(nil)) retval=1
017d:Ret  KERNEL32.LoadLibraryW() retval=10000000 ret=7ebab0c0
017d:Call KERNEL32.GetProcAddress(10000000,0015a708 "f95") ret=7ebab13d
017d:Ret  KERNEL32.GetProcAddress() retval=100b118e ret=7ebab13d
...
017d:trace:msi:alloc_msi_remote_handle 1 -> 1
017d:trace:msi:__wine_msi_call_dll_function calling "f95"
017d:Call KERNEL32.GetEnvironmentVariableA(7ec26fb5
"MsiBreak",0033f960,00000104) ret=7ebaaeb6
017d:Ret  KERNEL32.GetEnvironmentVariableA() retval=00000000 ret=7ebaaeb6
017d:Call
KERNEL32.CreateThread(00000000,00000000,100b118e,00000001,00000000,00000000)
ret=7ebab1e7
017d:Ret  KERNEL32.CreateThread() retval=00000084 ret=7ebab1e7 
...
0177:Starting thread proc 0x100b118e (arg=0x1) 
...
0177:Call msi.MsiRecordSetStringW(00000002,00000001,0057ed14 L"Running
InstallScript function f95") ret=100937f5 
...
0177:Call advapi32.OpenServiceW(00e9c3d8,00e9cc3c L"Winmgmt",80000000)
ret=10067ca4 
...
0177:Ret  advapi32.OpenServiceW() retval=00000000 ret=10067ca4
0177:Call KERNEL32.GetLastError() ret=100689b1
0177:Ret  KERNEL32.GetLastError() retval=00000424 ret=100689b1
...
0177:Call advapi32.QueryServiceStatus(00000000,00188f18) ret=10067ca4
0177:Ret  advapi32.QueryServiceStatus() retval=00000000 ret=10067ca4
0177:Call KERNEL32.GetLastError() ret=100689b1
0177:Ret  KERNEL32.GetLastError() retval=00000006 ret=100689b1
...
0177:Call oleaut32.SysFreeString(0178332c
L"File=C:\\CodeBases\\isdev\\Script\\ISRT\\Src\\Service.rul\tLine=346\tError=6")
ret=10009d6e 
...
0177:Call advapi32.RegOpenKeyExW(80000002,00e8d054
L"SYSTEM\\CurrentControlSet\\Services\\Winmgmt",00000000,00000001,0057e730)
ret=100495f4
0177:Ret  advapi32.RegOpenKeyExW() retval=00000002 ret=100495f4
...
0177:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0057e6a0)
ret=100efe56
0177:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b446ec7
ip=7b446ec7 tid=0177
0177:trace:seh:raise_exception  info[0]=19930520
0177:trace:seh:raise_exception  info[1]=0057e704
0177:trace:seh:raise_exception  info[2]=10185698
0177:trace:seh:raise_exception  eax=7b435589 ebx=00000000 ecx=00000000
edx=0057e68c esi=0057e68c edi=0057e650
0177:trace:seh:raise_exception  ebp=0057e628 esp=0057e5c4 cs=f7bc0023 ds=57002b
es=f7be002b fs=f7be0063 gs=f7be006b flags=00200212
0177:trace:seh:call_stack_handlers calling handler at 0x10124cd1 code=e06d7363
flags=1
0177:Call KERNEL32.GetLastError() ret=100fa646
0177:Ret  KERNEL32.GetLastError() retval=00000020 ret=100fa646 
...
0177:Call oleaut32.SysFreeString(01785e0c
L"File=C:\\CodeBases\\isdev\\Script\\ISRT\\Src\\Registry.rul\tLine=900\tError=-2147024894")
ret=10009d6e
...
0177:Call user32.MessageBoxW(0001008a,01783470 L"The Windows Management
Instrumentation service is disabled or missing.  This service is required by
the product.  The installation will now exit.",01784548 L"Dragon 15 -
InstallShield Wizard",00002010) ret=10067ca4 
...
--- snip ---

The installer checks for running WMI Service. Wine should provide a dummy
'winmgmt' service.

https://msdn.microsoft.com/en-us/library/aa826517(v=vs.85).aspx

--- quote ---
WMI runs as a service with the display name "Windows Management
Instrumentation" and the service name "winmgmt". WMI runs automatically at
system startup under the LocalSystem account. If WMI is not running, it
automatically starts when the first management application or script requests
connection to a WMI namespace.
--- quote ---

The installer proceeds further with dummy service being present. It will detect
if the service is set as manual-start type in registry, ask to start it and
configure the service as autostart.

'dgnsetup.log' for reference when it's fixed:

--- snip ---
...
Action start 4:34:49: CheckWMIService.
InstallShield 4:34:50: Running InstallScript function f95
InstallShield 4:34:50: Opening stream of file C:\users\focht\Temp\msid4c.tmp
InstallShield 4:34:50: Extracting support file IsConfig.ini to
C:\users\focht\Temp\{5831C68A-BB86-4FE2-BE9E-E9E332B7E739}\IsConfig.ini
InstallShield 4:34:50: Extracted isconfig.ini to
C:\users\focht\Temp\{5831C68A-BB86-4FE2-BE9E-E9E332B7E739}\IsConfig.ini
InstallShield 4:34:50: Got '{9628CAFD-A29C-415D-970F-4E58EE25BA04}' for
TempPathGuid from isconfig.ini
InstallShield 4:34:50: Attempting to use temp path
'C:\users\focht\Temp\{9628CAFD-A29C-415D-970F-4E58EE25BA04}'
InstallShield 4:34:50: Using new temp path
InstallShield 4:34:50: Cleaning up temp file
C:\users\focht\Temp\{5831C68A-BB86-4FE2-BE9E-E9E332B7E739}\IsConfig.ini
InstallShield 4:34:50: Using temp folder
C:\users\focht\Temp\{9628CAFD-A29C-415D-970F-4E58EE25BA04}
InstallShield 4:34:50: Installing engine...
InstallShield 4:34:50: Using product language 1033
InstallShield 4:34:50: Detected X64 OS
InstallShield 4:34:50: Skipping optional support file _isuser_0x0409.dll
InstallShield 4:34:50: Setting script cmdline...
InstallShield 4:34:50: ProductCode is {768AC460-237E-45B6-99B8-1DE6D0F391E8}
InstallShield 4:34:50: Initializing Engine
InstallShield 4:34:56: Done Initializing...
InstallShield 4:34:56: Registering Msi Server...
InstallShield 4:34:57: Invoking script function CheckWMIService
1: Successfully started service Winmgmt 
1: Winmgmt service startup type changed to automatic 
InstallShield 4:35:04: Returning script function result
InstallShield 4:35:04: CallScriptFunctionFromMsiCA() ends, result 0x0
...
--- snip ---

ProtectionID scan for documentation:

--- snip ---
-=[ ProtectionID v0.6.9.0 DECEMBER]=-
(c) 2003-2017 CDKiLLER & TippeX
Build 24/12/17-21:05:42
Ready...
Scanning -> Z:\home\focht\Downloads\Dragon\setup.exe
File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 1674296 (0198C38h)
Byte(s) | Machine: 0x14C (I386)
Compilation TimeStamp : 0x55F7AF0A -> Tue 15th Sep 2015 05:39:22 (GMT)
[TimeStamp] 0x55F7AF0A -> Tue 15th Sep 2015 05:39:22 (GMT) | PE Header | - |
Offset: 0x00000110 | VA: 0x00400110 | -
[TimeStamp] 0x55F7AF0A -> Tue 15th Sep 2015 05:39:22 (GMT) | DebugDirectory | -
| Offset: 0x000ED3B4 | VA: 0x004EE7B4 | -
[TimeStamp] 0x55F7AF0A -> Tue 15th Sep 2015 05:39:22 (GMT) | DebugDirectory | -
| Offset: 0x000ED3D0 | VA: 0x004EE7D0 | -
-> File Appears to be Digitally Signed @ Offset 0196A58h, size : 021E0h / 08672
byte(s)
-> File has 2136 (0858h) bytes of appended data starting at offset 0196200h
[LoadConfig] Struct determined as v8 (Expected size 140 | Actual size 64)
[!] Executable uses SEH Tables (/SAFESEH) (1501 calculated 1501 recorded... 0
invalid addresses) 
[LoadConfig] CodeIntegrity -> Flags 0x1 | Catalog 0x0 (0) | Catalog Offset
0x435C3A43 | Reserved 0x4265646F
[LoadConfig] GuardAddressTakenIatEntryTable 0x73657361 | Count 0x6473695C
(1685285212)
[LoadConfig] GuardLongJumpTargetTable 0x725C7665 | Count 0x73696465
(1936286821)
[LoadConfig] HybridMetadataPointer 0x614C5C74 | DynamicValueRelocTable
0x6175676E
[LoadConfig] FailFastIndirectProc 0x49206567 | FailFastPointer 0x7065646E
[LoadConfig] UnknownZero1 0x65646E65
[File Heuristics] -> Flag #1 : 00000100000001001100000000000100 (0x0404C004)
[Entrypoint Section Entropy] : 6.56 (section #0) ".text   " | Size : 0xEC6E6
(968422) byte(s)
[DllCharacteristics] -> Flag : (0x8100) -> DEP | TSA
[SectionCount] 4 (0x4) | ImageSize 0x1A0000 (1703936) byte(s)
[VersionInfo] Company Name : Nuance Communications Inc.
[VersionInfo] Product Name : Dragon 15
[VersionInfo] Product Version : 15.00.000
[VersionInfo] File Description : Setup Launcher for Dragon
[VersionInfo] File Version : 15.00.000
[VersionInfo] Original FileName : InstallShield Setup.exe
[VersionInfo] Internal Name : Setup
[VersionInfo] Legal Copyrights : Copyright © 1991-2016 Nuance Communications.
Inc.
[ModuleReport] [IAT] Modules -> VERSION.dll | COMCTL32.dll | KERNEL32.dll |
USER32.dll | GDI32.dll | ADVAPI32.dll | SHELL32.dll | ole32.dll | OLEAUT32.dll
| CRYPT32.dll | RPCRT4.dll | gdiplus.dll
[ModuleReport] [DelayImport] Modules -> msi.dll
[Debug Info] (record 1 of 2) (file offset 0xED3B0)
Characteristics : 0x0 | TimeDateStamp : 0x55F7AF0A (Tue 15th Sep 2015 05:39:22
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 2 (0x2) -> CodeView | Size : 0x5C (92) 
AddressOfRawData : 0x10AA68 | PointerToRawData : 0x109668
CvSig : 0x53445352 | SigGuid 8661E3D7-D89C-46EF-BB1AAC0DAC6070EC
Age : 0x1 (1) | Pdb : C:\CodeBases\isdev\redist\Language
Independent\i386\setupPreReq.pdb
[Debug Info] (record 2 of 2) (file offset 0xED3CC)
Characteristics : 0x0 | TimeDateStamp : 0x55F7AF0A (Tue 15th Sep 2015 05:39:22
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 12 (0xC) -> Undocumented | Size : 0x10 (16) 
AddressOfRawData : 0x10AAC4 | PointerToRawData : 0x1096C4
[-= Installer =-] InstallShield v15.0.0.0 Setup Module
[CdKeySerial] found "Invalid code" @ VA: 0x001073BC / Offset: 0x00105FBC
[CompilerDetect] -> Visual C++ 11.0 (Visual Studio 2011)
- Scan Took : 0.548 Second(s) [000000224h (548) tick(s)] [566 of 580 scan(s)
done]
--- snip ---

The InstallShield scripting engine dll containing the service check (function
'f95'):

--- snip ---
Scanning -> Z:\home\focht\Downloads\msi468a.tmp
File Type : 32-Bit Dll (Subsystem : Win GUI / 2), Size : 3207226 (030F03Ah)
Byte(s) | Machine: 0x14C (I386)
Compilation TimeStamp : 0x55F798F6 -> Tue 15th Sep 2015 04:05:10 (GMT)
[TimeStamp] 0x55F798F6 -> Tue 15th Sep 2015 04:05:10 (GMT) | PE Header | - |
Offset: 0x00000120 | VA: 0x10000120 | -
[TimeStamp] 0x55F798F5 -> Tue 15th Sep 2015 04:05:09 (GMT) | Export | - |
Offset: 0x000BDFF9 | VA: 0x10243BF9 | -
-> File has 2409018 (024C23Ah) bytes of appended data starting at offset
0C2E00h
[LoadConfig] CodeIntegrity -> Flags 0xA3F0 | Catalog 0x46 (70) | Catalog Offset
0x2000001 | Reserved 0x46A4A0
[LoadConfig] GuardAddressTakenIatEntryTable 0x8000011 | Count 0x46A558
(4629848)
[LoadConfig] GuardLongJumpTargetTable 0x8000001 | Count 0x46A5F8 (4630008)
[LoadConfig] HybridMetadataPointer 0x8000011 | DynamicValueRelocTable 0x46A66C
[LoadConfig] FailFastIndirectProc 0x8000011 | FailFastPointer 0x46C360
[LoadConfig] UnknownZero1 0x8000011
[!] Warning - export data seems to be invalid
[File Heuristics] -> Flag #1 : 00000000000001001100010100100111 (0x0004C527)
[Entrypoint Section Entropy] : 5.45 (section #1) ".rsrc   " | Size : 0x24800
(149504) byte(s)
[DllCharacteristics] -> Flag : (0x0100) -> DEP
[SectionCount] 3 (0x3) | ImageSize 0x24A000 (2400256) byte(s)
[Export] 0% of function(s) (6 of 1009) are in file | 0 are forwarded | 1009
code | 0 data | 0 uninit data | 0 unknown | 
[VersionInfo] Company Name : Flexera Software LLC
[VersionInfo] Product Name : InstallShield
[VersionInfo] Product Version : 22.0
[VersionInfo] File Description : InstallShield (R) Setup Engine
[VersionInfo] File Version : 22.0.330
[VersionInfo] Original FileName : iKernel.dll
[VersionInfo] Internal Name : Kernel
[VersionInfo] Legal Copyrights : Copyright (c) 2015 Flexera Software LLC. All
Rights Reserved.
[ModuleReport] [IAT] Modules -> kernel32.dll | msi.dll | RPCRT4.dll | WINMM.dll
| COMCTL32.dll | gdiplus.dll | USER32.dll | GDI32.dll | ADVAPI32.dll |
SHELL32.dll | ole32.dll | OLEAUT32.dll | SHLWAPI.dll | VERSION.dll |
CRYPT32.dll
[!] PE Compact v20301 (internal version) compressed !
- Scan Took : 0.473 Second(s) [0000001D9h (473) tick(s)] [246 of 580 scan(s)
done]
--- snip ---

$ du -sh Dragon_Professional_Individual_English.exe 
3.5G    Dragon_Professional_Individual_English.exe

$ sha1sum Dragon_Professional_Individual_English.exe 
dd934b33a8c7fe21ae68350ea9eb5a79d811f5a9 
Dragon_Professional_Individual_English.exe

$ wine --version
wine-3.7

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list