Two different Update processes in one application

I have two different applications for one project. At present i push updates into server in two different folders. Iam using two different paths(two client wyc files and two wyUpdate.exe) two download the updates in to user system.

-In my first application iam using windows form for one application to get the updates and to it shows the update information on that form.This is dotnet application. -For second application iam currently using stand alone application to download the updates. Iam running wyUpdate.exe here.Simply i get updates from server when i run wyUpdate.exe

Here my requirement is

1)Can i use one windows form for two applications to run updates from server using two different client.wyc file and client.wys file.

2) Can we use one automatic updater.dll file for both applications.

3)This windows form should show message like Application1 is updated and Application 2 is updated on same.

Note: Using same server for both applications.

1)Can i use one windows form for two applications to run updates from server using two different client.wyc file and client.wys file.

Not easily, but yes. Use 2 AutomaticUpdaterBackend class instances.

2) Can we use one automatic updater.dll file for both applications.

Yes.

I am using Vb.net windows form to get update installed in my system when i run Access form.Once open the form it is checking for the update. while downloading updates if the access form is open it is giving message like FIles in use. Can i have this message before installing the updates. Why because i am giving message like "you have an update click on install" to user before installing process start.Can i get downloads silently even if my files are open??

Private Sub AutomaticUpdater1_beforeInstall(sender As Object, e As System.EventArgs) Handles AutomaticUpdater1.ReadyToBeInstalled Me.Show() 'AutomaticUpdater1.Hide() Me.TopMost = True Dim x As Integer Dim y As Integer x = Screen.PrimaryScreen.WorkingArea.Width - 250 y = Screen.PrimaryScreen.WorkingArea.Height - 230 Me.Location = New Point(x, y) End Sub

Private Sub Ok_Click(sender As Object, e As System.EventArgs) Handles Ok.Click AutomaticUpdater1.InstallNow() Me.Close() End Sub

Before install form should open and when i click Ok then update should start install...Instead of checking for file in use while downloading..Can you please provide solution.

You app has to be closed when you're updating your app. That's just how Windows works.

1)Yes exactly iam closing the app right now while extracting the application. I need it to ask for request the user to close the app while installing. Can i get files in use window into my control when i am installing application after 100% downloading.For this i need BeforeExtracting event. but in my present AutomaticUpdater.dll i couldnot find this event.

2)When i open application next time once downloading is complet, automatically starting installing the update. I dont want to start it automatically. before that i want to show a message to user "that you have an Update"

How can i control this and which event is useful for this to control it. Please let me know.

This bug should be fixed in wyUpdate 2.6.18. Update to the latest version.

New AutomaticUpdater.Design.dll is created in Design folder after updating to 2.6.18. Do i need to add this dll to my project in which i am using vb.net (already iam using Automaticupdater.dll).

Note: Latest AutomaticUpdater.dll file using"When i open application next time once downloading is completed, automatically starting installing the update. I dont want to start it automatically". before that i want to show a message to user "that you have an Update"

Private Sub PtsUpdate_Load(sender As Object, e As System.EventArgs) Handles Me.Load AutomaticUpdater1.ForceCheckForUpdate() End Sub

My program checking this if download already completed it is starting installing the update. Instead of that i want to open form like that you have an update.

"Once Download is completedForm should open"---how to check this.Then Click Installstarts installFiles in useclose the opend filestarts installation again.

New AutomaticUpdater.Design.dll is created in Design folder after updating to 2.6.18. Do i need to add this dll to my project in which i am using vb.net (already iam using Automaticupdater.dll).

If you followed our articles, then simple rebuilding your application should copy the latest AutomaticUpdater dll to your app. (Obviously you have to update wyBuild first).

@rnkotha

I'm not sure what your question is.

Private Sub PtsUpdate_Load(sender As Object, e As System.EventArgs) Handles Me.Load AutomaticUpdater1.ForceCheckForUpdate() End Sub

In my program i am using above code to to check for updates at On Load event.First time it is opened and checked for updates.This time i have not installed updates and closed my application.Next time when i open my application it started installing automatically with out user control. Here iwant to open my form before installing the update. Can i make this into my control?

Set the "UpdateType" to anything other than Automatic and you'll have full control over when an update takes place.

Currently i am only having the wyUpdate check for updates and not download and install the same. Iam having another button for the user to trigger the download and installation. Can you suggest me possible ways to have non wyBuild contol to perform download and installation activity.

I am using option update Type is OnlyCheck for AutomaticUpdater.dll(latest)

Can you suggest me possible ways to have non wyBuild contol to perform download and installation activity.

I'm not sure what you're asking. To begin the next step just call InstallNow(). See: AutomaticUpdater Members.

AutomaticUpdater dll which i am using is latest one doing automatic installing when i start the application second time if i left first time update installation. Here i have created one form.It should open before installing.Once user click on install on the button in form then only it should start download and install.

So for that do we have anything for Download like as calling Install now?

InstallNow() starts the download.

Yes InstallNow is fine but..my requirement is after forcecheckforupdate() my form should open before installing then user click on install then install should start. But my problem here it is working only when i open form first time installation. Its not working if i click cancel the update and starts next time. Next time it is starting automatically with out opening form. Can you please tell me how to control the form before installing in second time running application. I tried with all types CheckAndDownload, automatic and onlycheck ..

Yes InstallNow is fine but..my requirement is after forcecheckforupdate() my form should open before installing then user click on install then install should start. But my problem here it is working only when i open form first time installation. Its not working if i click cancel the update and starts next time. Next time it is starting automatically with out opening form.Can you please tell me how to control the form before installing in second time running application. I tried with all types CheckAndDownload, automatic and onlycheck ...Is there any chance to check downloaded updates in local drive?

You need to set the UpdateType to "CheckAndDownload" either at design time or in your form's constructor at runtime. Otherwise the AutomaticUpdater will stick with the default behavior (automatic updating).

Thank you so much wyatt.

I have one question here I just want to run another application once update is completed successfully. i tried to run my application in UpdateSuccessfull event. But it is checking when i run next time. But i cant get it to run after successfull installing updates. So to run my application where should i keep code?

When are you adding an event handler to the updatesucceful event? At design time?

I have one form which enable in ReadytobeInstalled event. If i click install on form then it will install the updates. After updates are installed i am using UpdateSuccessfull event but it is not triggering.

Yes, but when are you adding an event handler to the updatesucceful event? At design time?

I want to close Application from Taskmanager if there are no updates. So in which event can i use the code to exit the application?

Yes Update is working good. Thank you.

If i cancel updates during extracting then i am getting error as "Application has stopped working , A problem caused the program to stop working correctly. Please close the program".

How can i over come this?? Can i use extracting failed event to start the update process from begining..??

If i cancel updates during extracting then i am getting error as "Application has stopped working , A problem caused the program to stop working correctly. Please close the program".

Which app is showing that error? Your application or wyUpdate?

My application which is built on windows application based on automatic updater control using VB.net .??

No, I'm asking is your app crashing or is wyUpdate crashing? Also try the latest versions currently out (2.6.18.4 of both wyUpdate and the AutomaticUpdater).