Skip to content

Commit b8669ea

Browse files
committed
Update dms4-scripting.md
1 parent 12b0c8b commit b8669ea

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

docs/dms4/dms4-scripting.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,32 @@ You need to create an install script that ToxicOS can use to install your apps.
55

66
Each script contains a list of applications, each application entry having information and directions for installation and optionally un-installation associated with it.
77

8-
Each application entry is made up by placing information inside tags. Most tags are required however some are optional.
8+
Each application entry is made up by placing information inside tags. Most tags are required however some are optional.
9+
10+
Script must be named INSTALL.CNF and placed next to folders you wish to install
11+
12+
!!! abstract "Example Structure"
13+
14+
```
15+
mass:/
16+
INSTALL.CNF
17+
18+
APPFOLDER1/
19+
|____APP1.ELF
20+
21+
APPFOLDER2/
22+
|____APP2.ELF
23+
24+
```
25+
26+
!!! note
27+
28+
INSTALL.CNF can also be in App folder(s) to have an install script per app. Pathing is relative, keep this in mind when writing the scripts.
29+
930

1031
## Install Script Example
1132

12-
```
33+
``` title="INSTALL.CNF"
1334
[APP]
1435
[HEADER]
1536
[TITLE]
@@ -69,4 +90,8 @@ When a `_` charater is added to the start of the action, i.e. `RMDIR` becomes `_
6990

7091
Filenames specified in an installation script are not absolute, they are relative to a certain location. This location depends on where the application is being installed to (memory card or HDD) or from. You do not need to be concerned with where files end up on the memory card or HDD, but note that when specifying a source file in the install section, that file is relative to the directory where the installation script is stored.
7192

72-
ToxicOS allows whitespace in installation scripts as well as comments. Any text after a # character is treated as a comment.
93+
ToxicOS allows whitespace in installation scripts as well as comments. Any text after a # character is treated as a comment.
94+
95+
# End Result
96+
97+
ToxicOS folder will be created on MemCard 1 or if HDD was destination, a partition named ToxicOS ELF Storage will be created.

0 commit comments

Comments
 (0)