PDA

View Full Version : True Update 2.0 AutoRun Windows Service



Ryan
06-23-2006, 12:39 PM
Hey all!
Thanks for checking this out! TrueUpdate is a cool program for sure but it is lacking one thing. A way to auto update, adding trueupdate to the windows task scheduler from and installer has proven to be quite a task, not to mention there are permissions problems with doing that. So the second idea i had was to write a service in vb.net to execute trueupdate, using a timer, but me being an asp.net kinda guy im having some problems with the hole VB.Net service thing. This may or may not be the right way to do what I want but I’m out of ideas. I am sure that there is someone else out there that has wanted to do this to so if any of you all have an idea please let me know.

Thanks
Ryan

TJS
06-23-2006, 01:36 PM
We had the same desire to have the TU client run automatically on a schedule. We started by using a java open source service wrapper but that had some issues (performance/stability).

http://wrapper.tanukisoftware.org/doc/english/introduction.html

Next the team wrote a service in Delphi that worked perfectly. While I was not involved first hand in the dev, it only took one programmer about a day to write it. Once register on the user's system the service would call any configured .exe at any configured interval.

I found this link recently that may be some help too. It looks like this guy has posted some .NET source that could get you started. He current implementation is geared to run DB store procedures on an interval and email notifications based on pass/fail conditions. Might be something you could adapt.

http://www.codeproject.com/dotnet/notificationservice.asp

Ryan
06-23-2006, 01:46 PM
Hey thanks for the info, I had tried some java but im not much good and it seemed to get stuck somewhere and freeze my PC. Thats probably my fult as i dont do much java. Do you have anymore info on the "Delphi" app that worked? Where i might find it or some contact info for who wrote it? I have seen the .NET app you are talking about and messed with it some to but could only get an instance of the client script to start, but not execute. The problem must be with the permissions if i ran the service under my admin account it worked fine but if i ran it under the localsystem, networksystem or user it seems to only start an instance.

Thanks
Ryan

Steven Carr
06-23-2006, 08:51 PM
A Delphi application for this purpose would not be difficult to write.

There is a "wizard" in delphi to write a service app.

Most of it would be in the testing and working out those little "gotchas" like permissions etc.. which is sound like you came across with the .net app.