« Basic Software Development Lifecycle
» Coming Soon: TehDevs 2.0


Custom U3 Applications

Chris Spurlock | 04.24.08 | Customizing, U3
custom-u3-applications

I’m sure everyone visiting this site has heard of U3 Smart drives. Have you ever wanted to be able to add your own applications to the launchpad? Well, now you can; for some applications anyways.

If you have an application you would like to be runnable from your U3 Smart drive you can achieve this in just a few steps. This may not work for larger applications or for applications that rely on registry entries. The application I’ll be walking through in this article will be DOSBox; a great MSDOS emulator capable of playing your favorite old school games. You can obtain the copy of DOSBox HERE.

After download the application install or extract it to a folder in your U3’s Applications folder. Name this folder something simple, but yet something easy to recognize. The installer automatically choses DOSBoxPortable in this case.

image2.jpg

The application is now technically runnable from the U3 drive. However, it will not be on the launchpad. To put an icon on the launchpad begin by opening the System folder on the U3 drive. Note that you must be able to see hidden files in order to open this folder. Inside of the System folder is another folder named Apps. Go in this folder and make a new folder that will be for your application you just installed on the drive. Make it simple yet recognizable again. This time I used “dosbox”.

image3.jpg

Now that you have a folder named “dosbox” go inside of it and create another folder named “Manifest”. This folder MUST be named “Manifest” for the U3 launchpad application to recognize it.

image5.jpg

Inside of this Manifest folder place a new file called “Manifest.u3i” and the icon of your application in .ico format.

image6.jpg

Open Manifest.u3i in notepad and modify the following lines. The first line you need to change is in the <application> tag. Change the uuid to the exact name of the folder you placed the Manifest folder in. In this case it was “dosbox”. You may also put a version number for that application if you wish. The version of DOSBox installed was 0.72 in this case. The next tag is the <icon> tag. Change the icon name to the name of the icon you placed in the Manifest folder. In this example it is dosbox.ico. For the <name> tag put the name how you would like it shown on the launchpad menu. The <vendor> tag shows who has distributed the finished package. The <description> tag lets you enter a description which will show as a pop-up tip on the launchpad menu.

The next two tags, and the most important, are <appStart> and <appStop>. In the <appStart> tag change the workingdir to the path of the installed application. In this case it is “%U3_Device_Path%\applications\DOSBoxPortable”. Change the command that is executed, which is the cmd line, to the executable you wish to be ran. In this case it is “%U3_DEVICE_PATH%\applications\DOSBoxPortable\DOSBoxPortable.exe”. The workingdir and cmd for the <appStop> tag will be the same.

image7.jpg

Now that you have the two files necessary in the Manifest folder zip up the folder.

image8.jpg

You can delete the folder now that you have a zip file of the folder. Now rename the zip file extension to u3p extension and also change the name of the file to the same name as the folder it resides. In this case the file gets renamed to “dosbox.u3p”.

image12.jpg

We’re almost finished with adding a menu item to the launchpad. The next and final step is to open the LPDB.xml file in notepad and adding a line. Add the following line between the to <LPDB> tags: “<APPLICATION guid=”dosbox” launchOnStart=”N” lastUsed=”5/4/2006 10:03:12 AM”>\dosbox.u3p</APPLICATION>” The guid is the name of the folder/u3p file you wish to add to the menu. To make it launch when you insert your U3 Smart drive change launchOnStart to a “Y”. I do not want the application starting every time I insert the thumb drive so I left it a “N”. Now put the name of the package in between the application tags. In this case it is “\dosbox.u3p”.

image10.jpg

Now save the file, eject the drive, and reinsert the drive. You should see a menu item for your new application. It will probably be under the “More Programs” section until you change your program settings and move it up on the list.

image1.jpg

Now you have successfully added an application to your drive. It will keep it’s data on the drive and be with you where ever you go. But since this is a DOS emulator we need one more step. Make a folder on your drive named DOS or something similar. This is where you will place all the DOS programs you wish to emulate. Treat this folder as a regular folder and add folders in it to keep various programs in as you would DOS. Once you load DOSBox you must mount the folder as a drive. Type the following: “mount c: m:\DOS”. Make sure you use the correct drive letter for your thumb drive and the folder you used to store your DOS items in. In this case it was “m” and “\DOS”, respectively. Now that the drive is mounted as C you can simply type “C:” to go it and start away with all those old DOS commands you never forgot such as “dir/w”.

image13.jpg

Now relive those days of youth where ever you may roam!

image14.jpg

18 Comments

:

:


« Basic Software Development Lifecycle
» Coming Soon: TehDevs 2.0