Running 16bit Dos apps on x64bit OS with App-V

Since desktops and laptops are now easily equipped with 4GB of RAM there is an increasing of 64bit operation systems. But are your applications supporting 64bits?

I use DOSBox (DOS emulator) to run the DOS applications. You can find more information on the site of DOSBox.

I describe three ways to sequence DOS applications with App-V. The first is to sequence DOSBox and the DOS app in one package. An other way is to sequence DOSBox and the DOS application separated so you can use DOSBox for more DOS applications. And the last one is to sequence DOSBox and run the DOS application from the local machine into the bubble.

One – Sequence DOSBox and the DOS app in one package.

This is a short description of an post of my colleague Ruben Koene at Softgridblog.com.

Zip the DOS application to extract the contend to the local Q drive.

1. Start monitoring and create a directory based on the DOS application name.

2. Install DOSBox on the Q drive in the DOS application directory in a separate directory. (Q:\DOSAPP.001\DOSBox\)
Note: You probably want to uncheck “Create desktop shortcut” because the DOS application will have his own shortcut.

3. Finish the installation of DOSBox.

4. Extract the DOS application into the directory on the Q drive in a separate directory. (Q:\DOSAPP.001\DOSapp\)

5. Open the options of DOSBox in the start menu
(Start menu – All programs – DOSBox 0.74 – Options – DOSBox 0.74 Options)

6. With this action a new config file is created. You can change a lot but, we are only going to add a custom action to execute. Scroll down in the config file and add the following lines.

MOUNT Q Q:\DOSAPP.001\DOSapp\
Q:
APP.exe

7. Save the file as DOSApp.conf in your DOSapp-folder (i.e. Q:\DOSAPP.001\DOSApp\DOSApp.conf)
Note: Use Save As.. or the original will be overridden.

8. Close the config file and stop monitoring.

9. In the Configure Applications-wizard delete all the applications and click the add button. Add the following application path:

“Q:\DOSAPP.001\DOSBox-0.74\DOSBox.exe” –noconsole –conf  “Q:\DOSAPP.001\DOSapp\DOSApp.conf”

10. Add the application icon rename the application name. Click on add and click on next.

11. Launch the application.
Note: Settings are configured in the config file. For more information look here.

12. Finish the deployment wizard and save the sequence.

Two – Sequences the applications separated

Zip the DOS application to extract the contend to the local Q drive.

1. Sequence DOSBox the default way. Finish the sequence and make sure DOSBox work properly.

2. Sequence the DOS application. Extract the application files and finish monitoring.

3. Add the executable of the DOS application and try to launch the application.
Note: It doesn’t mather if the application gives an error message.

4. Finish the deployment wizard and save the sequence

5. Copy the DOSBox ODS file into the DOSAPP directory.

6. Rename the OSD file into the DOS application name.

7. Open the OSD in your text editor and change the Application name and version into the DOS application name and version.

8. Change PARAMETERS=”-userconf” into PARAMETERS=”\DOSAPP.001\DOSAPP\APP.EXE -noconsole -exit”
Note: For the parameter of DOSBox look at the site, I used -noconsole to show only the app and -exit to close DOSBox when the app is closed .

9.  Add dynamicsuiting with the DOS application.

<DEPENDENCIES>
<CODEBASE HREF=”FILE://D:\Apps\VAPPS\DOSAPP.001\DOSAPP.sft” GUID=”{GUID}” SYSGUARDFILE=”DOSAPP.001\osguard.cp”  MANDATORY=”TRUE”/>
</DEPENDENCIES>

Note: Add your own location of the DOSAPP.sft file.

10. Save the OSD file and deploy the application.
Note: Don’t forget to create a desktop shortcut.

Three – Only sequence DOSBox

1. Only sequence DOSBox the default way. Finish the sequence and make sure DOSBox work properly.

2. Copy the original OSD file and rename the OSD  file name into the DOS application name.

3. Open the OSD in your text editor and change the Application name and version into the DOS application name and version.

4. Change PARAMETERS=”-userconf” into PARAMETERS=”D:\Apps\DOSapp\App.exe -noconsole -exit” (Your own application location).

5. Save the OSD file and deploy the application.
Note: Don’t forget to create a desktop shortcut.

If you have questions or suggestions leave them in the comments.