Autoupdate pause/play

How can I "stop" autoupdate component, and "play" it again (when some conditions are met)?

Actually my application need some user input first so update can send that input to update server like this:

autoUpdate.wyUpdateCommandline = string.Format("-urlargs:\"input1={0}&input2={1}\"", SomeInput1, SomeInput2 );

So autoupdate need to wait for user input and than start working.

I know "ForceCheckForUpdate" can trigger update checking, but how can I (really) stop it in the beginning with out using tricks like this "WaitBeforeCheckSecs=999" or this:

private void autoUpdate_BeforeChecking(object sender, wyDay.Controls.BeforeArgs e) { if (autoUpdate.wyUpdateCommandline == null || autoUpdate.wyUpdateCommandline.Equals("")) e.Cancel = true; }

private void autoUpdate_BeforeDownloading(object sender, wyDay.Controls.BeforeArgs e) { if (autoUpdate.wyUpdateCommandline == null || autoUpdate.wyUpdateCommandline.Equals("")) e.Cancel = true; }

Thanks

At design time, set the "UpdateType" property of the AutomaticUpdater to "DoNothing". Then, at runtime after the user has entered the values that you need to use, change the UpdateType to "Automatic" and call ForceCheckForUpdate().

This way the AutomaticUpdater will do nothing until you tell it to.

Tell me if this helps.

It woks,Thanks