https://bugs.winehq.org/show_bug.cgi?id=46773
Bug ID: 46773 Summary: Skype 4 MSI installer fails to create trigger for task using Task Scheduler (unimplemented type 7, TASK_TRIGGER_REGISTRATION) Product: Wine Version: 4.3 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: taskschd Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
found during revisit of bug 35251
--- snip --- $ WINEDEBUG=+seh,+relay,+taskschd wine ./SkypeSetup_4.0.0.226.exe >>log.txt 2>&1 ... 004b:trace:taskschd:factory_CreateInstance (nil),{2faba4c7-4da9-4013-9697-20cc3fd40f85},0x66f9cc 004b:trace:taskschd:TaskService_create created 0x163320 004b:trace:taskschd:TaskService_QueryInterface 0x163320,{2faba4c7-4da9-4013-9697-20cc3fd40f85},0x66f9cc 004b:trace:taskschd:TaskService_Connect 0x163320,0x66fa30 {VT_EMPTY},0x66fa20 {VT_EMPTY},0x66fa10 {VT_EMPTY},0x66fa00 {VT_EMPTY} 004b:trace:taskschd:start_schedsvc Trying to start L"Schedule" service 004b:trace:taskschd:TaskService_Connect server version 0x10003 004b:trace:taskschd:TaskService_GetFolder 0x163320,L"\",0x66fc44 004b:trace:taskschd:TaskFolder_create created 0x167db8 004b:trace:taskschd:TaskFolder_DeleteTask 0x167db8,L"{B67E32B8-FA52-4F29-8D5D-EDD96BA46763}",0 004b:trace:taskschd:TaskService_NewTask 0x163320,0,0x66fc48 004b:trace:taskschd:TaskDefinition_create created 0x167e38 004b:trace:taskschd:TaskService_Release destroying 0x163320 004b:trace:taskschd:TaskDefinition_get_Triggers 0x167e38,0x66fc40 004b:trace:taskschd:TriggerCollection_AddRef (0x163320) ref=2 004b:trace:taskschd:TriggerCollection_Create (0x163320)->(7 0x66fc3c) 004b:fixme:taskschd:TriggerCollection_Create Unimplemented type 7 ... 004b:Call msi.MsiRecordSetStringA(00000002,00000000,100162cc "[1] error: [2].") ret=10001390 ... 004b:Call msi.MsiRecordSetStringA(00000002,00000001,1001684c "CreateTaskAsDesktopUser") ret=1000139c ... 004b:Call msi.MsiRecordSetStringA(00000002,00000002,10016768 "Failed to create new trigger") ret=100013a8 ... 004b:trace:taskschd:TriggerCollection_Release (0x163320) ref=1 004b:trace:taskschd:TaskDefinition_Release destroying 0x167e38 004b:trace:taskschd:TriggerCollection_Release (0x163320) ref=0 004b:trace:taskschd:TaskFolder_Release destroying 0x167db8 ... 004b:Call PE DLL (proc=0x100099a3,module=0x10000000 L"msi6dcc.tmp",reason=PROCESS_DETACH,res=(nil)) ... 004b:Ret msi.__wine_msi_call_dll_function() retval=00000643 ret=7efed626 --- snip ---
The failing custom action doesn't seem to be critical for the installer though (continues).
Microsoft docs:
https://docs.microsoft.com/en-us/windows/desktop/taskschd/triggercollection-...
--- quote --- TASK_TRIGGER_REGISTRATION 7 Triggers the task when the task is registered. --- quote ---
Wine source:
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/taskschd/task.c#l434
--- snip --- 434 static HRESULT WINAPI TriggerCollection_Create(ITriggerCollection *iface, TASK_TRIGGER_TYPE2 type, ITrigger **trigger) 435 { 436 trigger_collection *This = impl_from_ITriggerCollection(iface); 437 438 TRACE("(%p)->(%d %p)\n", This, type, trigger); 439 440 switch(type) { 441 case TASK_TRIGGER_DAILY: 442 return DailyTrigger_create(trigger); 443 default: 444 FIXME("Unimplemented type %d\n", type); 445 return E_NOTIMPL; 446 } 447 448 return S_OK; 449 } --- snip ---
$ sha1sum SkypeSetup_4.0.0.226.exe 3726546c421f078353c73ea6fb42561fac434701 SkypeSetup_4.0.0.226.exe
$ du -sh SkypeSetup_4.0.0.226.exe 20M SkypeSetup_4.0.0.226.exe
$ wine --version wine-4.3
Regards