Win4Lin is a discontinued non-free application for Linux which allowed users to run a copy of Windows 9x, Windows 2000 or Windows XP applications on their Linux desktop. It is based on MERGE, developed circa 1985 by Locus Computing Corporation to run DOS applications on UNIX operating systems. Locus eventually gained licensing access to the MS Windows source code. A significant benefit for MERGE is that is runs on the native UNIX filesystem, considered more stable and faster than the Microsoft FAT and VFAT filesystems. The Merge technology was owned by several companies (including IBM and SCO), but was finally discontinued in 2010, likely due to improvements in VMWare and VirtualBox as well as incompatibilities with subsequent version of MS Windows.
While MERGE/Win4lin ran the complete MS Windows 9x/2000/XP OS, many users in actuality only used it for one application, so giving individual users access to the full Windows OS could be problematic. To this end, appwrapper.exe was developed, allowing Win4Lin to launch a single application rather than a full desktop. This is accomplished by replacing the default Windows shell, Explorer.exe with appwrapper.exe by modifying the C:\WINDOWS\SYSTEM.INI file.
You can download a zip file containing appwrapper.exe and installation instructions from here. (You may need to use wget on the link.)
The instructions in the Zip file are good for Windows versions prior to Windows 7. For Win7, you must edit the registry.
The instructions in the Zip file are good for Windows versions prior to Windows 7. For Win7, you must edit the registry.
Move apprwapper.exe to C:\Windows
Launch regedit and navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
My version of Win7 lacked the following key, so:
Right-click Winlogon, select New > String Value, and name it Shell
Now edit Shell to contain the full path to appwrapper.exe followed by the full path to the app you want to run. Then reboot. The only thing available to the user of that copy of Win7 will be the app you specify.
I installed this in a Virtual Win7 machine running on Linux (it launches a Ham Radio app named EarthLink) using a clone of my base Win7 install. If you get it wrong, it's just easier to delete the clone and start over.

Comments