A .mio file is a package of codes and files necessary to run a widget or an application.
A .mio file cannot be executed by itself. MioEngine is required.
Editing a .mio file
A .mio file can be opened with MioFactory to view and update the files and codes.
The .mio file can be locked. In that case, the code contained cannot be edited with MioFactory.
Running a .mio file
MioEngine can run a .mio file.
To run the .mio file, you can drag it over a copy of mioEngine.exe.
The best way is to copy mioEngine.exe in the same folder than your .mio file, and to rename mioEngine.exe to the name of your .mio file.
For example, your mio file is myWidget.mio
Rename mioEngine.exe to myWidget.exe. Then click twice on myWidget.exe.
MioEngine will search for myWidget.mio in the same folder and run it.
Distributing a .mio file
With the help of MioFactory, a .mio file can be linked to MioEngine.exe. The final file can be run on any Windows based computer, without the need of downloading a run-time.
You can create an exe file that will run the .mio file it contains when the user click twice on the exe file.
An installation package can also be created to install the .mio file permanently on the computer, with shortcuts and auto-start when necessary.
Structure of a .mio file
The .mio file contains an header and a files merged into a single file.
Header| |
The header contains basic information about the application and the list of files embedded with the size of each one of them.
| Files| |
The files are merged after the header.
Files are compressed except the following extensions:
.mio, .jpg, .mp3, mp4, .wma, .gif, .swf, .pdf, .wmv, .avi, .qt, .asf, .divx, .ivf, .mov, .mpg, .mpeg, .rm, .viv, .ram, .ra
| MioScript Code| |
MioScript is a scripting language interpreted by MioEngine.
When MioEngine runs a .mio file, the MioScript code is loaded from the file identity.kexe. This file is built by MioFactory when the application file is created.
Additional libraries files may be added by MioFactory: _identity.lib and _identity2.lib.
Finally, the MioScript code is interpreted when an event is raised by MioEngine, such as event.load.
|
|