AutoInstall


Autoinstall program designed for autoconfig your device after hard reset, so you can restore most of your favorite settings automatically.



AutoInstall use config file with commands. Config files are ANSI text files.
Config file must be in one of 3 places:

1. Main memory
\AutoInstall.txt
This method can not used after hard reset, because you can't save file there during hard reset.
But this can be used for script testing or other tasks.

2. SD card
\Storage Card\AutoInstall.txt
This method can be used after hard reset, because data on SD card still alive after hard reset.

3. ExtRom
\Storage\AutoInstall.txt
You can place config file in extrom.

Context of config file:

Config file can contains following commands:
1. Copy  - copy file from one place to another
2. Delete - delete file
3. Install - install CAB file
4. Exec - execute EXE file without wait
5. ExecWait - execute EXE file with wait
6. RegImport - import registry file
7. Dir - create new directory

3 types of storage indicators:
1. MAIN - user store, "\"
2. SD - SD card, "\Storage Card\"
3. EXT - Extended Rom (available on some devices only!)

Each line must have ';' at the end.
The last line in file must be empty.

Examples of script:

Delete(MAIN, "\MY.txt");
RegImport(SD, "\test.reg");
Copy(SD, "\test.reg", MAIN, "\copytest.reg");
Install(SD, "\FLAME_004_WWE_SMALLFNT.cab");
Exec(MAIN, "\Windows\Calc.exe");
Dir(MAIN, "\TestDir");
Reset;

In this example,
in 1st line we delete  file \MY.TXT in root.
in 2nd line we import registry file \Storage Card\test.reg
in 3d line we copy \Storage Card\test.reg to \copytest.reg
in 4th we install CAB file \Storage Card\FLAME_004_WWE_SMALLFNT.cab
in 5th we create a \TestDir folder
in 6th we do a soft reset.

You can see errors in script in file \AILOG.TXT 


-CotullaCode