To use this script, create an archive, adding all your files to package index 1, and add this script.
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE warpin SYSTEM "warpin.dtd"><WARPIN VERSION="0.9.6">
<!-- Here come the different package descriptions, which must match the packages in the archive. -->
<PCK INDEX="1" PACKAGEID="Sample author\Sample app\Sample package\1\0\0" TARGET="$(WARPIN_DEFAULTAPPSPATH)\SAMPLE" TITLE="Sample app" SELECT="YES" > <DESCRIPTION>This package contains a sample application.</DESCRIPTION> </PCK>
<!-- Here come the different pages. The NEXTBUTTON element can be omitted, except for the last page. -->
<!-- page 1: introductory readme page, word-wrap format. -->
<PAGE INDEX="1" TYPE="README"> <TEXT>
Please read through all the following before installing. Then select "Next" to continue. Select "Cancel" to abort installation.</TEXT>
<README FORMAT="FLOW"> This would be your readme in a text-view control, which can be pretty big. It is word-wrapped, and line breaks are removed, unless an empty line is found, which separates two paragraphs. </README>
</PAGE>
<!-- The TYPE=CONTAINER page will list the packages which can be installed. -->
<PAGE INDEX="2" TYPE="CONTAINER"> <TEXT> On this page, you may deselect the package if it is already installed or change the package's target path. </TEXT> </PAGE>
<!-- The TYPE=CONFIGURE page will show the user the configuration. -->
<PAGE INDEX="3" TYPE="CONFIGURE"> <TEXT> This is what you have selected for installation.</TEXT> </PAGE>
<!-- Display another TEXT page to inform the user that installation will begin. We use the TARGET="0" with the NEXTBUTTON element which starts installation. -->
<PAGE INDEX="4" TYPE="TEXT"> <NEXTBUTTON TARGET="0">I~nstall</NEXTBUTTON> <TEXT>
Now press "Install" to begin installing this archive.</TEXT> </PAGE> </WARPIN>