Tech Note 31: Creating An Installer With e-PocketSetup Express

April 19, 2008

Copyright 2008 NS BASIC Corporation

e-PocketSetup is probably the best tool to create installers for Windows CE currently available. It's powerful, it has unique features for NS Basic users and is continually improving. It also works well for desktop apps: the NS Basic/CE installer is built using it. e-PocketSetup is a commercial product.

ePocketSetup Express is sufficient for most NS Basic/CE applications. e-PocketSetup Express is an simple and quick tool to create, manage and deploy single-platform setup projects for Windows Mobile. Easy to use, it was designed for all developers that want to create modern and sophisticated setups without needing to distribute all-packages-in-one setup programs or customize the interface and setup actions.

For more information on e-PocketExpress, visit the e-PocketSetup website.

There is a special price of $29.95 USD for NS Basic/CE users. To get the discount, order "e-PocketSetup 4 Express (Single User)" from the online store and use coupon code EPS4NSBSPECIAL. A demo is also available. It is fully functional, but puts up a nag message when it is run.

In this Tech Note, we will give you the information you need to set up an installer for a typical NS Basic project. e-PocketSetup has many additional features: please consult the documentation of the product for more information.

To save space, we'll refer to e-PocketSetup Express as ePSX from now on.

1. Getting Started

Start by making a list of all the files you want to install. It will be easier if you put them into a single directory or directory structure. Make sure you include any dll or ocx controls you have added to your project. If you are distributing the control to other people, you should also have a text file with your licence agreement.

Start ePSX. You'll see this screen:

2. Project Settings

Choose Main Information, under Project Settings.

You can further customize your installer by going into Setup Messages, Setup Appearance and Setup Dialogs. For a simple installer, there is no need to do so.

3. NSBasic Settings

Next, choose "NSBasic Settings" under Setup. It will guide you through filling in the rest of the information needed to create your installer. After you are done, you can edit the selections you made by using the other options under Setup, such as "Windows Mobile Settings", or select "Next" in the toolbar at the top of the screen.

4. Windows Mobile Settings

In this screen, we tell ePSX which CPU types we will be targetting. You only need to set up information for the Platform you specified in NSBasic Settings. If your Platform is "Pocket PC 2003 (or later)", you do not need to do anything in this panel: the default is to create the installer for ARM processors. Do not check off X86 (Emulator). It is not used by NS Basic/CE.

5. Additional Files

Use this panel to tell eEPX about other files you need to install. It automatically adds your application to the Installation Directory you specified. If you are not installing any other files, you can click on Next to go to the next step.

If your app has additional files, such a group of images, you can right click on %InstallDir% and add a subfolder. Add your files to this subfolder.

If you have controls (.dll or .ocx) files you need to install, put them in \Windows. After you have added them, right click on the filename and select File Properties. You'll see this window:

6. Additional Packages

Use this panel to add additional CAB files. This won't be necessary for most projects.

7. Runtimes

Skip this window - nothing needs to be entered here.

8. Shortcuts

Your application will be installed to the directory \Program Files\%InstallationDirectory%\appname on your device. To make it easy to access from the Start menu, we need to put a shortcut to it. ePSX sets up this shortcut automatically.

9. Registry Entries

This window lets you set up registry entries for your application. Once again, most NS Basic/CE apps will not need to do anything here.

10. Build Information

We're almost done. Just a bit more information to enter about how the installer will be built.

11. Generate Setup

We're done! Click on Generate Setup and the setup file is created. The file EPS Demo.exe is our installer. It has also created EPS Demo_WM5_StrongArm.cab, which is only needed for installing without ActiveSync (for example, from a card).

12. Test the Setup

To run the installer you have just created, click on the .exe file that was created and follow the instructions on the screen. You can now go back and tweak any of the settings and recreate the installer until it is just right.

Additional Notes

From Mike Trainor: "The wizard only allows for one shortcut, but if another is needed, simply create the shortcut on your Pocket PC. Copy the file from \windows\start menu folder to your desktop. Then add it to the list of files to be installed by epocketsetup with the destintation being \windows\start menu."