Back to index
|NS_HIDDEN_ (nsresult) ProcessUpdates(nsIFile *greDir|
|This function processes any available updates. |
|nsIFile nsIFile *||updRootDir|
|nsIFile nsIFile int||argc|
|nsIFile nsIFile int char **||argv|
This function processes any available updates.
This routine attempts to delete a directory that may contain some files that are still in use.
Resolves a relative path string containing "." and ".." with respect to a base path (assumed to already be resolved).
As part of that process, it may exit the current process and relaunch it at a later time.
Two directories are passed to this function: greDir (where the actual binary resides) and appDir (which contains application.ini for XULRunner apps). If this is not a XULRunner app then appDir is identical to greDir.
The argc and argv passed to this function should be what is needed to relaunch the current process.
This function does not modify greDir or appDir.