Application Installation

Preparing the install scripts

This is Tonybologna's instruction on preparing the scripts.

Quote:
Originally Posted by Tonybologna
Keep in mind here that there HAS to be a blank space at the bottom of each install script. These should work with the latest SMS(SMS 2.1, rev2),ULE(4.12),& any HDL. Some have reported problems with HDL but 0.8b patched should work. I had initial problems with HDL from MC but got it working again. Also, you need to change the version number for whatever application that's being installed in the scripts.
Listed below are some examples he provided on scripts. Lets take the one for uLE for example:

ULE(Launchelf):

The APPINFO.PBT should have the following information exactly:

Code:
#
# Application Manager Script for BootManager 2
#

# Change this information to describe the application.
SET "TITLE" "ULaunchELF"
SET "VERSION" "v 4.12"
SET "AUTHOR" "EP, Dlanor"
SET "DESC" "ULaunchELF is another popular dashboard replacement for the PS2."
SET "MEDIAS" ""
#

GOTO "$ARG1$"

:LABEL_NAME
ADDWIDGET "LABEL" "$ARG2$$TITLE$ v$VERSION$"
EXIT 0

:QUERY
ADDWIDGET "CALL" "$TITLE$" "$BM.TXT_VERSION$: $VERSION$ $BM.TXT_AUTHOR$: $AUTHOR$ $BM.TXT_DESC$: $DESC$" $ARG2$ "$ARG0$" "$ARG3$" "$ARG4$" "$ARG5$"
EXIT "0"

:INSTALL
IF FAIL COPY "$PWD$" "$ARG2$:/BM/APPS/ULELF"
MESSAGE "Failed installing $TITLE$!"
RRM "$ARG2$:/BM/APPS/ULELF"
RETURN -1
ENDIF
EXIT 0

:REMOVE
IF FAIL RRM "$PWD$"
MESSAGE "Failed removing $TITLE$!"
RETURN -1
ENDIF
EXIT 0

:RUN
SHUTDOWN "MM"
LOADEXEC "PBAT" "$BM.SCRIPTS$/LOADEXEC.PBT" "$PWD$/ULELF.ELF"
EXIT "0"
Now an example of how multiple apps should be prepared. For this example, we'll use uLE and SMS

Code:
#
# Application Manager Script for BootManager 2
#

# Change this information to describe the application.
SET "TITLE" "ULaunchELF"
SET "VERSION" "v 4.12"
SET "AUTHOR" "EP, Dlanor"
SET "DESC" "ULaunchELF is another popular dashboard replacement for the PS2."
SET "MEDIAS" ""
#

GOTO "$ARG1$"

:LABEL_NAME
ADDWIDGET "LABEL" "$ARG2$$TITLE$ v$VERSION$"
EXIT 0

:QUERY
ADDWIDGET "CALL" "$TITLE$" "$BM.TXT_VERSION$: $VERSION$ $BM.TXT_AUTHOR$: $AUTHOR$ $BM.TXT_DESC$: $DESC$" $ARG2$ "$ARG0$" "$ARG3$" "$ARG4$" "$ARG5$"
EXIT "0"

:INSTALL
IF FAIL COPY "$PWD$" "$ARG2$:/BM/APPS/ULELF"
MESSAGE "Failed installing $TITLE$!"
RRM "$ARG2$:/BM/APPS/ULELF"
RETURN -1
ENDIF
EXIT 0

:REMOVE
IF FAIL RRM "$PWD$"
MESSAGE "Failed removing $TITLE$!"
RETURN -1
ENDIF
EXIT 0

:RUN
SHUTDOWN "MM"
LOADEXEC "PBAT" "$BM.SCRIPTS$/LOADEXEC.PBT" "$PWD$/ULELF.ELF"
EXIT "0"

#
# Application Manager Script for BootManager 2
#

# Change this information to describe the application.
SET "TITLE" "SMS"
SET "VERSION" "v 2.1 rev2"
SET "AUTHOR" "EEUG"
SET "DESC" "SMS or Simple Media System allows you to play your favorite Divx Movies on your PS2."
SET "MEDIAS" "SMS"
#

GOTO "$ARG1$"

:LABEL_NAME
ADDWIDGET "LABEL" "$ARG2$$TITLE$ v$VERSION$"
EXIT 0

:QUERY
ADDWIDGET "CALL" "$TITLE$" "$BM.TXT_VERSION$: $VERSION$ $BM.TXT_AUTHOR$: $AUTHOR$ $BM.TXT_DESC$: $DESC$" $ARG2$ "$ARG0$" "$ARG3$" "$ARG4$" "$ARG5$"
EXIT "0"

:INSTALL
IF FAIL COPY "$PWD$" "$ARG2$:/BM/APPS/SMS"
MESSAGE "Failed installing $TITLE$!"
RRM "$ARG2$:/BM/APPS/SMS"
RETURN -1
ENDIF
EXIT 0

:REMOVE
IF FAIL RRM "$PWD$"
MESSAGE "Failed removing $TITLE$!"
RETURN -1
ENDIF
EXIT 0

:RUN
SHUTDOWN "MM"
LOADEXEC "PBAT" "$BM.SCRIPTS$/LOADEXEC.PBT" "$PWD$/SMS.ELF"
EXIT "0"
You can keep adding apps in a similar mannar as long as you add a blank line in between install scripts.

Also in an attached text file will be additional scripts for you to use.

Adding your APPINFO.PBT to the install disc

Coming soon when I can find proper information about this.

More Install Scripts

 

Back