therealtomlapp
Member
- Joined
- Apr 29, 2008
- Messages
- 12
- Programming Experience
- 10+
I have developed a program for my company that monitors our salespeople while they are working. The program runs silently in the background and reports what web pages employees are browsing to into an sql database on our server. The problem is I have set up the program to programatically check for updates, but it doesn't seem to be working. I created a table in our database to track the updates, when a program is updated, it updates it's "profile" in this table with the new version number, so I can ensure all the updates are being applied. It is programmed to do this silently so that the employees are not interrupted.
here is my code:
When I publish the program it is published to a unc path on our server, in the updates window the program is set to check this unc path for updates. As far as I know, i've followed all the instructions from the microsoft website verbatim. The funny thing is, we have another program that is used to read the database that I created with the exact same update schema. This program is installed on all of the manager's computers and it updates fine.
here is my code:
VB.NET:
Dim info As UpdateCheckInfo = Nothing
If (ApplicationDeployment.IsNetworkDeployed) Then
Dim AD As ApplicationDeployment = ApplicationDeployment.CurrentDeployment
Try
info = AD.CheckForDetailedUpdate()
Catch dde As DeploymentDownloadException
Catch ioe As InvalidOperationException
End Try
If info.UpdateAvailable = True Then
Try
AD.Update()
My.Settings.UpdateInstalled = True
Application.Restart()
Catch dde As DeploymentDownloadException
End Try
End If
End If
When I publish the program it is published to a unc path on our server, in the updates window the program is set to check this unc path for updates. As far as I know, i've followed all the instructions from the microsoft website verbatim. The funny thing is, we have another program that is used to read the database that I created with the exact same update schema. This program is installed on all of the manager's computers and it updates fine.