bright, fresh software
Downloads  |  Buy

Automatic Updater with Access

Re: Automatic Updater with Access

Postby Arun » July 20th, 2012, 6:52 am

Let me explain details about what iam trying to do. I have created window service using wyBuild Automatic updater source code to get the updates from server at boot. Now my requirement is updates should download from server to local machine(i keep updates manually in to server). So in this process after running windows when downloading updates connecting to server is problem. Here i dont have Username and password for server. Iam placeing .wys files and .wyu files in server. Below code using in window service.

auBackend = new AutomaticUpdaterBackend
{
GUID = "cbaae9eb-c4fc-4795-bef8-e1db9e3b6c08",
UpdateType = UpdateType.Automatic,
ServiceName = this.ServiceName
};

Below method is using for creating text file in C drive. Here i have changed path to server. Then also having same Error trying to save file

using (StreamWriter outfile = new StreamWriter(@"C:\NETWinService.txt", append))
{
outfile.WriteLine(message);
}
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 20th, 2012, 11:23 pm

Below method is using for creating text file in C drive. Here i have changed path to server. Then also having same Error trying to save file


Did you fix the UNC path? Do you have permission to access the file? Did you try the same exact file:/// url that the error showed in your browser? Do you get the same result in your browser as you do in wyUpdate?
User avatar
Wyatt
Site Admin
 
Posts: 2558
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Automatic Updater with Access

Postby Arun » July 23rd, 2012, 10:08 am

I think i dont have problem with path because now iam able to get updates in windows7 machine. But coming to Xp machine i could not get the updates. The text file showing below message

auBackend_BeforeChecking
auBackend_CheckingFailed. Reason
Title: wyUpdate exited prematurely
Message: wyUpdate failed to start.

This is happening only in XP machines. So is there any thing to change code to work it in Xp also.
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 23rd, 2012, 3:37 pm

Are you including wyUpdate.exe along with your app? If not, then include wyUpdate.exe with your app and try again.

When you're using the AutomaticUpdater in your service, open the task manager. Do you see wyUpdate running? Does it open and close?

What happens when you just double click wyUpdate.exe?
User avatar
Wyatt
Site Admin
 
Posts: 2558
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Automatic Updater with Access

Postby Arun » July 24th, 2012, 4:44 am

I have included wyUpdate.exe in to my application. For windows 7 machine able to get updates.When coming to XP only having problem.
In taskmanager i can see my service while running. But i could not see wyBild application in Task manager.
When i double click on wyUpdate.exe started downloading updates and installed fine.

So i found only with service iam not able to get updates in XP machine.
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 24th, 2012, 7:44 am

But i could not see wyBild application in Task manager.


What about wyUpdate? In the task manager sort the processes by name, then scroll to the bottom of the list. Then start your service. Do you see wyUpdate briefly start? Does it ever start?
User avatar
Wyatt
Site Admin
 
Posts: 2558
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Automatic Updater with Access

Postby Arun » July 24th, 2012, 10:04 am

No Wyupdate in my taskmanager processes.Can windows service show wyUpdate in Processes?. Because in Windows7 iam able to get updates. There in window7 also i could not see wyupdate in Processes but its downloading the updates. The problem is with Windows XP only.

This Error is only for windowsXP machines:

Message: Error trying to save file: Error downloading "https://theshare.thomsonreuters.com/sites/trta/sites/pts/Outsourcing/DMT/sotware_updates/ptstools/updates/wyServer.wys": The remote server returned an error: (401) Unauthorized.

So how can we change authorization to my server to access files?

I can run wyUpdate and able to install manually. But coming windows service only having problem?
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 24th, 2012, 2:41 pm

There in window7 also i could not see wyupdate in Processes but its downloading the updates.


Make sure your Task Manager is set to show processes of all users. (Click the checkbox "Show processes from all users")


Message: Error trying to save file: Error downloading "https://theshare.thomsonreuters.com/sites/trta/sites/pts/Outsourcing/DMT/sotware_updates/ptstools/updates/wyServer.wys": The remote server returned an error: (401) Unauthorized.

So how can we change authorization to my server to access files?


This depends on your server. Ask your IT administrator why you can't access the file. This isn't a problem with wyUpdate. This is a problem with your network.
User avatar
Wyatt
Site Admin
 
Posts: 2558
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Automatic Updater with Access

Postby Arun » July 25th, 2012, 5:07 am

"Make sure your Task Manager is set to show processes of all users. (Click the checkbox "Show processes from all users")"

Now i can see my windows service in Taskmanager.

Here access file with windows7 is different with XP? Evern user have access permissions for folder in server also could not get updates. Log file in C drive is created.

Do you have any idea about permission level for share point user to get updates?
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 25th, 2012, 1:47 pm

I really don't know what you're talking about. If you're getting an error copy & paste the full error.

If your service is running as LocalSystem then wyUpdate should have full permission to the machine that's being updated (unless you do crazy things with system permissions).
User avatar
Wyatt
Site Admin
 
Posts: 2558
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

PreviousNext

Return to wyBuild, wyUpdate, & AutomaticUpdater Support