![xojo folderitem xojo folderitem](http://gluonfield.com/spacelike/sites/default/files/inline-images/Output.png)
If that URL (or any URL) starts with "https:", it will be accessed securely.
![xojo folderitem xojo folderitem](https://i.imgur.com/hj5vIyK.png)
#Xojo folderitem update
At the least, you must also set the ServerPublicRSAKey (more on this later) and the UpdateURL where it will get its update information. In the Constructor, you have to provide a FolderItem for a folder where Kaju can save its preferences, one that is unique to your app. ImplementationĬreate a new Kaju.UpdateChecker instance and fill in its properties. There is example code in the Kaju Update Test project. The user must manually start the new app, so your code should warn them and force the app to quit. Important: Due to limitations in the Windows and Linux OS's, a 64-bit app that is launched after an update from the 32-bit version will not work properly. If you plan to allow 32-bit to 64-bit updates on Windows and Linux, you must include code that will force the user to manually relaunch the app after such an update. if appQuitting then // This "if" is not strictly necessary That code should look something like this:Įvent CancelClose(appQuitting As Boolean) As Boolean // You've determined that you need to cancel the // close, so.
#Xojo folderitem install
(It doesn't matter if there is an update scheduled at the time.) This will prevent an update from happening if the user quits later without choosing Quit & Install again. In those cases, you must call Kaju.CancelUpdate. The only other special code you'll need is in the CancelClose event of any window where the close is actually being cancelled, i.e., where you have the event return True. Unfortunately, that's not always true so you should force the issue by inserting App.UpdateInitiater = Nil into your App.Close event. Important: Kaju does its magic by launching a command-line script when the UpdateInitiater gets set to Nil, which should happen when the app quits. Kaju expects to find that and will handle it for you. You need to add one property to your App class, UpdateInitiater As Kaju.UpdateInitiater. Important: Do not drag the folders directly from the directory. Open the included Admin App or Test App, copy the Kaju Classes folder, then paste it into your project. In other words, set it up, write the code to call it, then forget about it. It is meant to be a single, turnkey solution with minimal involvement by you. It is designed as a series of Xojo classes in a central module and a Window. Kaju is a pull system where the client application gets information from a known URL. A Xojo module and Admin apps to enable self-updating Xojo apps.