Home › Forum › Omnis General Forum › AutoUpdater question
Tagged: General Coding
-
AutoUpdater question
Posted by Paolo Illing on April 27, 2019 at 9:32 amGood day,
Does anyone know if AutoUpdater is capable of writing a new file in the xcomp folder of omnis run time?Vik Shah replied 5 years, 1 month ago 3 Members · 3 Replies -
3 Replies
-
I don’t use AutoUpdater. I wrote a similar tool, Molu Update Server, circa 2007 that handles all update tasks except replacing the Omnis engine itself. Omnis Studio 10 has an option of running a script at launch, which promises to ease the update process.
The challenge of writing to the xcomps directory is the access permissions enforced by the operating system. I am using an iPad at the moment so I cannot verify this, but any file that is put into the “first run” target directory in the user application support area should be writable by an Omnis app or external app designed to update your application. -
To follow up, the xcomp directory in the application tree, not in the app data directory created by firstrun. So, you will need a method to assert proper permission to add to the xcomp directory. FWIW, it can be done; we do it although keeping up with new rules from Apple is a challenge. If you support windows only, you may enjoy an easier time with it.
-
Have a look at https://developer.omnis.net/onlinedocs/Programming/01omnistools.html#auto-updates
You can use the update.sh/bat file to copy over new XCOMPS or externals.
Vik Shah
Log in to reply.