Lines Matching refs:action
90 UINT msi_schedule_action( MSIPACKAGE *package, UINT script, const WCHAR *action ) in msi_schedule_action() argument
100 TRACE("Scheduling action %s in script %u\n", debugstr_w(action), script); in msi_schedule_action()
108 newbuf[count] = wcsdup( action ); in msi_schedule_action()
113 UINT msi_register_unique_action( MSIPACKAGE *package, const WCHAR *action ) in msi_register_unique_action() argument
118 TRACE("Registering %s as unique action\n", debugstr_w(action)); in msi_register_unique_action()
126 newbuf[count] = wcsdup( action ); in msi_register_unique_action()
131 BOOL msi_action_is_unique( const MSIPACKAGE *package, const WCHAR *action ) in msi_action_is_unique() argument
137 if (!wcscmp( package->unique_actions[i], action )) return TRUE; in msi_action_is_unique()
142 static BOOL check_execution_scheduling_options(MSIPACKAGE *package, LPCWSTR action, UINT options) in check_execution_scheduling_options() argument
165 if (msi_action_is_unique(package, action)) in check_execution_scheduling_options()
171 msi_register_unique_action(package, action); in check_execution_scheduling_options()
181 static WCHAR *get_deferred_action(const WCHAR *action, const WCHAR *actiondata, const WCHAR *usersi… in get_deferred_action() argument
188 return wcsdup(action); in get_deferred_action()
190 len = lstrlenW(action) + lstrlenW(actiondata) + in get_deferred_action()
195 swprintf(deferred, len, L"[%s<=>%s<=>%s]%s", actiondata, usersid, prodcode, action); in get_deferred_action()
308 struct running_action *action; in file_running_action() local
310 action = malloc( sizeof(*action) ); in file_running_action()
312 action->handle = Handle; in file_running_action()
313 action->process = process; in file_running_action()
314 action->name = wcsdup(name); in file_running_action()
316 list_add_tail( &package->RunningActions, &action->entry ); in file_running_action()
390 LPWSTR action; member
403 free( info->action ); in free_custom_action_data()
418 TRACE("waiting for %s\n", debugstr_w( info->action )); in wait_thread_handle()
429 TRACE("%s running in background\n", debugstr_w( info->action )); in wait_thread_handle()
459 static void handle_msi_break( const WCHAR *action ) in handle_msi_break() argument
464 if (!GetEnvironmentVariableW( L"MsiBreak", val, MAX_PATH ) || wcscmp( val, action )) return; in handle_msi_break()
515 WCHAR *dll = NULL, *action = NULL; in __wine_msi_call_dll_function() local
543 r = remote_GetActionInfo(guid, &action, &type, &dll, &proc, &remote_package); in __wine_msi_call_dll_function()
551 midl_user_free( action ); in __wine_msi_call_dll_function()
561 midl_user_free( action ); in __wine_msi_call_dll_function()
572 handle_msi_break(action); in __wine_msi_call_dll_function()
589 midl_user_free(action); in __wine_msi_call_dll_function()
793 MSIPACKAGE *package, INT type, LPCWSTR source, LPCWSTR target, LPCWSTR action ) in do_msidbCustomActionTypeDll() argument
808 info->action = wcsdup( action ); in do_msidbCustomActionTypeDll()
863 INT type, const WCHAR *action ) in HANDLE_CustomType1() argument
884 if (!(info = do_msidbCustomActionTypeDll( package, type, binary->tmpfile, target, action ))) in HANDLE_CustomType1()
957 INT type, const WCHAR *action ) in HANDLE_CustomType2() argument
972 return wait_process_handle( package, type, handle, action ); in HANDLE_CustomType2()
976 INT type, const WCHAR *action ) in HANDLE_CustomType17() argument
1001 if (!(info = do_msidbCustomActionTypeDll( package, type, file->TargetPath, target, action ))) in HANDLE_CustomType17()
1007 INT type, const WCHAR *action ) in HANDLE_CustomType18() argument
1021 return wait_process_handle( package, type, handle, action ); in HANDLE_CustomType18()
1025 INT type, const WCHAR *action ) in HANDLE_CustomType19() argument
1067 INT type, const WCHAR *action ) in HANDLE_CustomType23() argument
1105 return wait_process_handle( package, type, handle, action ); in HANDLE_CustomType23()
1148 INT type, const WCHAR *action ) in HANDLE_CustomType7() argument
1173 return wait_process_handle( package, type, handle, action ); in HANDLE_CustomType7()
1182 INT type, const WCHAR *action ) in HANDLE_CustomType50() argument
1196 return wait_process_handle( package, type, handle, action ); in HANDLE_CustomType50()
1200 INT type, const WCHAR *action ) in HANDLE_CustomType34() argument
1219 return wait_process_handle( package, type, handle, action ); in HANDLE_CustomType34()
1240 r = call_script( hPackage, info->type, info->source, info->target, info->action ); in ACTION_CallScript()
1266 MSIPACKAGE *package, INT type, LPCWSTR script, LPCWSTR function, LPCWSTR action ) in do_msidbCustomActionTypeScript() argument
1279 info->action = wcsdup( action ); in do_msidbCustomActionTypeScript()
1297 INT type, const WCHAR *action ) in HANDLE_CustomType37_38() argument
1303 info = do_msidbCustomActionTypeScript( package, type, target, NULL, action ); in HANDLE_CustomType37_38()
1308 INT type, const WCHAR *action ) in HANDLE_CustomType5_6() argument
1345 info = do_msidbCustomActionTypeScript( package, type, bufferw, target, action ); in HANDLE_CustomType5_6()
1356 INT type, const WCHAR *action ) in HANDLE_CustomType21_22() argument
1405 info = do_msidbCustomActionTypeScript( package, type, bufferw, target, action ); in HANDLE_CustomType21_22()
1415 INT type, const WCHAR *action ) in HANDLE_CustomType53_54() argument
1425 info = do_msidbCustomActionTypeScript( package, type, prop, NULL, action ); in HANDLE_CustomType53_54()
1448 static UINT defer_custom_action( MSIPACKAGE *package, const WCHAR *action, UINT type ) in defer_custom_action() argument
1450 WCHAR *actiondata = msi_dup_property( package->db, action ); in defer_custom_action()
1453 WCHAR *deferred = get_deferred_action( action, actiondata, usersid, prodcode ); in defer_custom_action()
1485 UINT ACTION_CustomAction(MSIPACKAGE *package, const WCHAR *action) in ACTION_CustomAction() argument
1495 if ((ptr = wcsrchr(action, ']'))) in ACTION_CustomAction()
1497 deferred_data = action; in ACTION_CustomAction()
1498 action = ptr + 1; in ACTION_CustomAction()
1501 …= MSI_QueryGetRecord( package->db, L"SELECT * FROM `CustomAction` WHERE `Action` = '%s'", action ); in ACTION_CustomAction()
1509 TRACE("Handling custom action %s (%x %s %s)\n",debugstr_w(action),type, in ACTION_CustomAction()
1523 rc = defer_custom_action( package, action, type ); in ACTION_CustomAction()
1528 LPWSTR actiondata = msi_dup_property( package->db, action ); in ACTION_CustomAction()
1549 else if (!check_execution_scheduling_options(package,action,type)) in ACTION_CustomAction()
1558 rc = HANDLE_CustomType1( package, source, target, type, action ); in ACTION_CustomAction()
1561 rc = HANDLE_CustomType2( package, source, target, type, action ); in ACTION_CustomAction()
1565 rc = HANDLE_CustomType5_6( package, source, target, type, action ); in ACTION_CustomAction()
1569 rc = HANDLE_CustomType7( package, source, target, type, action ); in ACTION_CustomAction()
1573 rc = HANDLE_CustomType17( package, source, target, type, action ); in ACTION_CustomAction()
1576 rc = HANDLE_CustomType18( package, source, target, type, action ); in ACTION_CustomAction()
1579 rc = HANDLE_CustomType19( package, source, target, type, action ); in ACTION_CustomAction()
1583 rc = HANDLE_CustomType21_22( package, source, target, type, action ); in ACTION_CustomAction()
1587 rc = HANDLE_CustomType23( package, source, deformated, type, action ); in ACTION_CustomAction()
1591 rc = HANDLE_CustomType34( package, source, target, type, action ); in ACTION_CustomAction()
1600 rc = HANDLE_CustomType37_38( package, source, target, type, action ); in ACTION_CustomAction()
1603 rc = HANDLE_CustomType50( package, source, target, type, action ); in ACTION_CustomAction()
1614 rc = HANDLE_CustomType53_54( package, source, target, type, action ); in ACTION_CustomAction()
1638 struct running_action *action = LIST_ENTRY( item, struct running_action, entry ); in ACTION_FinishCustomActions() local
1640 list_remove( &action->entry ); in ACTION_FinishCustomActions()
1642 TRACE("waiting for %s\n", debugstr_w( action->name ) ); in ACTION_FinishCustomActions()
1643 msi_dialog_check_messages( action->handle ); in ACTION_FinishCustomActions()
1645 CloseHandle( action->handle ); in ACTION_FinishCustomActions()
1646 free( action->name ); in ACTION_FinishCustomActions()
1647 free( action ); in ACTION_FinishCustomActions()
1691 *name = wcsdup(info->action); in s_remote_GetActionInfo()