Starts update installation wizard.
Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:
Value type | Description |
IMetabase | The repository, within which the update installation wizard is to be started. |
Executing the command opens a file selection dialog box. After the required update file is selected, and the OK button us clicked, the installation wizard is started for the selected update.
Executing the example requires a form and a button named Button1 on the form.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
Target := WinApplication.Instance.GetPluginTarget("MetabaseUpdate");
Context := Target.CreateExecutionContext;
Context.Data := MetabaseClass.Active;
Target.Execute("ApplyUpdate", Context);
End Sub Button1OnClick;
Clicking the button opens a dialog box that is used to open update files (*.pef). After the file is selected, and the OK button is clicked, the update installation wizard is started within the current repository.
See also: