Hey Michael,
Good afternoon,I'm evaluating wyBuild/wyUpdate...
The application we're looking to perform auto-update is provided in different "flavours" (OEM versions) to different people. I guess these then need different GUID's - so that they're recorded separately? I tried to do that using #if... but the GUID has to be set at design-time? Am I off-beam here?[at least one person will want all the flavours installed so he can use them at the same time; quite possible...]
Sure, this is possible. You'll need to create the AutomaticUpdater manually. Simple paste some variation of the code below directly below the call to the "InitializeComponent();" in your form's constructor.
AutomaticUpdater automaticUpdater = new AutomaticUpdater();
// setup the AutomaticUpdater propertiesautomaticUpdater.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));automaticUpdater.Location = new System.Drawing.Point(338, 12);automaticUpdater.MenuItem = this.mnuCheckUpdates;automaticUpdater.Size = new System.Drawing.Size(16, 16);automaticUpdater.TabIndex = 3;automaticUpdater.ClosingAborted += new System.EventHandler(this.automaticUpdater_ClosingAborted);
// required property - set the container as the FormautomaticUpdater.ContainerForm = this;
//TODO: setup your #IFs here.automaticUpdater.GUID = "d4fca505-567e-4079-944c-e51ef7872058";
// add the control and finalize AutomaticUpdater controlthis.Controls.Add(automaticUpdater);((System.ComponentModel.ISupportInitialize)(automaticUpdater)).EndInit();
Then auto-check; ideally we'd like to know that this happened on a specific day of the week (!) - that is we'd appreciate the update check being on a Monday morning. New releases happen over the weekend... Now that would mean a Friday install would check the next Monday, then a week later etc. If the application not used on the Monday then it'd check on the Tuesday... Is this a bit far-fetched or something we could do?
Well, you could set "DaysBetweenChecks" property to 7. This will check for updates every week. Would this work for you?
Out of interest - where is the "last checked" date/time stored? And (feature request) would it be possible to read this from the control (so one could say "Last successful check for updates was at 12:35 on 1/Jun/2010" or whatever).
That's a good idea, we'll add that property to the next update of AutomaticUpdater.