This only works in Lazarus main, and you access you access it in one of the events of the dialog.
E.g in OnTimer or OnButtonClicked.
There you can do something like:
...
(Sender as TTaskDialog).ProgressBar.SetRange(0,200);
(Sender as TTaskDialog).ProgressBar.Position := 25;
Bart