At 9:30 PM -0500 4/8/2007, Len Morgan wrote:
I'd like the app to check for newer versions on my server at startup. I've stored a custom property in each stack that has a version and a build number but it occurs to me that I can't get that information until I "start using" the stack. Once that's done, if I find (through a onPreOpenStack handler) that the server has a newer version, how can I download the newer version? Will I have to notify the user that a new version has been downloaded and require them to restart? Can I change a running stack (reload the updated version without reloading the OS cached version).
The easiest way to do this is probably to download the new version and save it to the old location, then use the "revert" command to reload the new stack. ("revert" actually reads from the disk file, so in this case, it will read in the version newly stored in the original location.)
This only works for separate stacks, however, not for the standalone itself. To replace the standalone, you need to download the new one and then prompt the user to quit and relaunch.
-- jeanne a. e. devoto ~ [EMAIL PROTECTED] http://www.jaedworks.com _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
