Please find below function which gets called before start installation process.
I want have function to create system restore point before start installation process.
Now whats my functionality works perfect, but the UI gets freeze.
i want to show marquee progress and UI should be resposive but after reading lots of article, i am unable to find any useful.
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
WasVisible: Boolean;
begin
// show the PreparingLabel
WizardForm.PreparingLabel.Visible := True;
WizardForm.ProgressGauge.Style := npbstMarquee;
// set a label caption
WizardForm.PreparingLabel.Text := 'Creating system Restore Point...';
CreateSystemRestorePoint();
WizardForm.ProgressGauge.Style := npbstNormal;
end;
Please help me on this, you answer can help me a lot.
Many Thanks.