You are here

PA Updater caching .paf.exe files to/from local folder?

3 posts / 0 new
Last post
presencia
Offline
Last seen: 10 years 2 months ago
Joined: 2011-09-06 15:59
PA Updater caching .paf.exe files to/from local folder?

Would it be possible to use a local folder as a cache for .paf.exe files?

I.e. PAUpdater wants to update FF6 and it cannot find it in "\\server\paf" so it downloads it from sf.net and saves it in "\\server\paf" then runs the updated PAF exe from "\\server\paf".

This could be a single entry in PAU.ini

LocalCacheFolder=\\server\paf
; or c:\paf or ...

And the logic is quite simple:


function Updated_PAF_file_path ( paf_exe_filename )
return FileExists ( LocalCacheFolder + paf_exe_filename ) || PAF_download ( paf_exe_filename , destination=LocalCacheFolder )
end function

An empty LocalCacheFolder would still use a temporary directory.

Thank you.

John T. Haller
John T. Haller's picture
Online
Last seen: 8 min 24 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Possibly

We'll be adding local directories to keep the files in at some point. I'm not sure if we'll support named paths or not.

Sometimes, the impossible can become possible, if you're awesome!

presencia
Offline
Last seen: 10 years 2 months ago
Joined: 2011-09-06 15:59
Thanks

I don't know if Delphi supports named paths but maybe one could "subst". I don't personally really need it as I use PA in my PC but wanted to be as universal as possible.

Thanks for the prompt reply.

Log in or register to post comments