// This file (Report CE.lod) is located in a folder (the "Runtime Folder")
// that contains the installation program for the Report CE runtime system.
// The contents of this folder are the only redistributable components of the
// Visual CE Pro Edition and the Visual CE Enterprise Edition.
//
// If you just copied the files in the Runtime Folder to a disk, you would
// have a "Runtime Disk".  If you then gave one of these Runtime Disks to a
// third party, and that third party connected their handheld to their
// desktop and ran SETUP.EXE from their Runtime Disk, the Report CE runtime
// system would be installed on their handheld computer.  In addition, an
// empty report would also be installed on their handheld computer.
//
// This file (Report CE.lod), in addition to providing you instructions on
// how to create a Runtime Disk, is actually part of the Runtime Disk (i.e.,
// it is part of the installation program for the Report CE runtime system).
// At the time the installation program is run, this file tells the
// installation program what to install.  By modifying this file, you can
// your Runtime Disk install your form instead of the empty report (this is
// explained below).
//
// Lines that begin with "//" are instructions on what you have to do to
// create a Runtime Disk.  At the time the installation program is run, the
// installation program ignores all the lines that begin with //.  It also
// ignores blank lines.  The other lines are commands to the installation
// program and they are in the form:
//
//       <command> <argument-1> <argument-2> ...
//
// A list of commands and their arguments can be found on the bottom of this
// file.  Note that the arguments are separated by spaces.  If your argument
// happens to have spaces inside it, enclose the entire argument with double
// quotes (for example, "My Report.rce").
//
// To build an installation disk, do the following:
//
// (1) Remove EMPTY.RCE from the Runtime Folder.
//
// (2) Copy your form (a .RCE file) into the Runtime Folder
//
// (3) Leave the command below intact.  This tells the installation program
//     to install the Report CE runtime software onto your user's handheld
//     during installation.

copy . . RCERT.exe
RemoteExec RCERT.exe "/r"

// (4) In the command below, replace "Empty" with the name of your .RCE
//     file.  This tells the installation program to load your form onto
//     your user's handheld during installation.  Don't forget, if your
//     form name happens to have spaces inside it, enclose the entire name 
//     with double quotes (for example, "My Report.rce").
//*

// << The following line(s) were added by the Distribution Files Wizard >>
mkdir "\My Documents"
copy . "\My Documents" "AcctRecP.rce"

// << The following line was commented out by the Distribution Files Wizard >>
//copy . .. empty.rce

// (5) If your report is to be run on a H/PC, remove the // from the front of
//     the command below and replace "Empty" with the name of your .RCE file
//     ("Empty" appears twice, replace them both).  This tells the
//     installation program to make your form visible on the START menu.

//createShortcut \Windows\Desktop Empty.lnk .. Empty.rce

// (6) If your form is to be run on a P/PC or Pocket PC, remove the // from
//     the front of the command below and replace "Empty" with the name of
//     your .RCE file.  ("Empty" appears twice, replace them both).  This
//     tells the installation program to make your form visible on the
//     START | PROGRAMS menu.
//*

// << The following line(s) were added by the Distribution Files Wizard >>
createShortcut "\Windows\Start Menu\Programs" "AcctRecP.lnk" "\My Documents" "AcctRecP.rce"

//createShortcut "\Windows\Start Menu\Programs" Empty.lnk .. Empty.rce

// (7) Copy the contents of the Runtime Folder to a disk and give the disk to
//     your user.  Tell your user to run SETUP.EXE to install your software.
//
// (8) Leave the command below intact.  This tells the installation program
//     the installation is complete

exit

// =========================================================================
// Command Summary
//
// copy <from> <to> <filename>
//
//    Copies a file from the installation disk to the handheld
//
//    <from> is the folder to copy from.  "." means the installation disk
//    <to> is the folder to copy to. "." means the \Windows folder, ".."
//          means the root of the file system.
//    <filename> is the simple file name of the file to copy.
//
// RemoteExec <executable> <argument>
//
//    Runs a program on the handheld
//
//    <executable> is the fully qualified pathname of the executable to run.
//          If no folder is specified, the installation program looks in
//          the \Windows folder.
//    <argument> depends on what <executable> you are running.
//
// createShortcut <shct-folder> <shct-filename> <targ-folder> <targ-filename>
//
//    Creates a shortcut on the handheld
//
//    <shct-folder> is the folder that will hold the shortcut
//    <shct-filename> is the simple filename of the shortcut file to create.
//          This should end in ".lnk".
//    <trag-folder> is the folder that will holds the file the shortcut is to
//          point to.
//    <shct-filename> is the simple filename or what the shortcut points to.
//                   
// mkdir <folder>
//
//    Creates a folder on the handheld
//
//    <folder> is the folder to create
//
// rm <pathname>
//
//    Deletes file on the handheld
//
//    <pathname> is full pathname of file to delete
//
