HD-Trailers.Net Downloader - New Version

  Thread Rating:
  • 3 Votes - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
compcentral Offline
Fan
Posts: 627
Joined: Apr 2010
Reputation: 2
Post: #11
I just updated my app to add a tray icon, notifications, and a context menu to end the app if needed.

ijourneaux Wrote:Thanks. Will try it out when I get home. One thing to watch for with ClickOnce applications. When the application gets updated, the actual location of the executable changes as well. Will your scheduler handle that complication?

I wasn't aware of that... Sounds like ClickOnce is a real pain in the @ss. Smile I could search for the newest .application file within a folder (and all subfolders if needed) and if the file in the .ini file is missing, I could launch the newer file instead. As long as the new file is still somewhere relative to the original root folder so I can find it programatically.

This was just a quick fix for me to get this working on my server and if it's useful for others cool. I'm more of a VB.NET person than C# (even though I'm familiar with C-based languages as well)... Otherwise, I'd just build this functionality into your source. I can provide the VB.Net source code for you to convert it for your use if you like... It's rather simple.
(This post was last modified: 2011-03-10 21:22 by compcentral.)
find quote
compcentral Offline
Fan
Posts: 627
Joined: Apr 2010
Reputation: 2
Post: #12
found a bug with the timing of the scheduler but I already fixed it and uploaded it. If you happened to download the app before now, just re-download and you're all set. Works like a charm for me.
(This post was last modified: 2011-03-11 00:40 by compcentral.)
find quote
ijourneaux Offline
Fan
Posts: 413
Joined: Mar 2009
Reputation: 1
Location: Wisconsin, USA
Post: #13
ClickOnce could be a good idea but the whole premise is that it must be installable without admin permissions. One nice thing is that it will automatically update the application if there is a new version available (whther or not to do this can be controlled). It maintains several versions of the program do that the installation can be reversed if needed.

That part works but since scheduling a task requires admin permissions. Since ClickOnce is design to accomplish tasks without admin permissions, the capabiltiy to schedule the ClickOnce apps is not easy.

I will probaby go to a standard installter shortly.
find quote
ijourneaux Offline
Fan
Posts: 413
Joined: Mar 2009
Reputation: 1
Location: Wisconsin, USA
Post: #14
ClickOnce could be a good idea but the whole premise is that it must be installable without admin permissions. One nice thing is that it will automatically update the application if there is a new version available (whther or not to do this can be controlled). It maintains several versions of the program do that the installation can be reversed if needed.

That part works but since scheduling a task requires admin permissions. Since ClickOnce is design to accomplish tasks without admin permissions, the capabiltiy to schedule the ClickOnce apps is not easy.

I will probaby go to a standard installter shortly.
find quote
compcentral Offline
Fan
Posts: 627
Joined: Apr 2010
Reputation: 2
Post: #15
What happens if you try to add the "rundll32.exe dfshim.dll,ShOpenVerbApplication C:\HD-Trailers.application" as a task in Window's task scheduler? That may also work... Didn't think to try that though.
find quote
ijourneaux Offline
Fan
Posts: 413
Joined: Mar 2009
Reputation: 1
Location: Wisconsin, USA
Post: #16
I think I tried that when you place the reference in task scheduler, I beleive task scheduler substitues the file path to the executable.

I will try and confirm.
find quote
compcentral Offline
Fan
Posts: 627
Joined: Apr 2010
Reputation: 2
Post: #17
ever get a chance to try that out?
find quote
ijourneaux Offline
Fan
Posts: 413
Joined: Mar 2009
Reputation: 1
Location: Wisconsin, USA
Post: #18
I am almost finished with a standard installer that will install a conventional executable to be scheduled. Should have it uploaded in the next few days.
find quote
shaktoo Offline
Fan
Posts: 636
Joined: Mar 2010
Reputation: 3
Location: in LIMBO
Post: #19
@ijourneaux, after a bit of fiddling got it eventually working. one thing i have noted though is that it is downloading the poster in the original name but not downloading it as folder.jpg as this script was doing before ( or maybe its just that I haven't played with the settings .. will look into it again later today ).
@compcentral .... thank you for the App.. did manage to get it working with the downloader . just took a while to figure what & how to do the settings . There is an issue , initially the app was coming up with repeated instances within nearly 6 seconds untill i terminated it. then in the settings I changed in line 3 to 720( as in 12 hours ) and now it seems to be functioning correctly so far.

One last request, if you guys could tell me on how to get the command prompt window (which opens with the downloader ) to start minimised in the background .
Thanks for all the hard work...
find quote
ijourneaux Offline
Fan
Posts: 413
Joined: Mar 2009
Reputation: 1
Location: Wisconsin, USA
Post: #20
I will look at the poster filename and how to minimize the application when it start shortly.

With a standard install package, the executable will be in the program files directory with an uninstaller and the .exe file will be able to be scheduled like any other application.

CLickOnce is an interesting idea but doesn't work for this application.
find quote
Post Reply