MED-V builds on top of the RAIL (Remote Applications Installed locally) model that is also in Virtual PC for Windows 7 and Windows XP Mode for Windows 7.
Unlike XP Mode or Virtual PC (which put the applications in a specific Start menu Folder) MED-V V2 will scan the All Users Start Menu in the guest operating system to determine what should be published and where it will place it (in its equivalent location) in the Host’s Start Menu. The basic process of application publishing will basically be:
1. Application installed before MED-V Image is deployed must create a shortcut in the All User’s Start Menu folder of the guest. Applications installed on a MED-V image after it is deployed must also create a shortcut in the start menu to also be discovered.
2. MED-V will continually monitor any changes to shortcuts in the start menu of the deployed MED-V image.
3. MED-V will publish changes in the shortcuts to the start menu of the host workstation as they are discovered.
The MED-V Client is responsible for monitoring the folder in the host where Virtual PC publishes its shortcuts for additions or deletions. When an application shortcut is added to this monitored folder, the shortcut watcher will copy the published shortcut to the same location in the host Start menu as it occupies in the VM’s Start menu. Likewise, when an application shortcut is deleted from the monitored folder, the shortcut watcher will delete the published shortcut from its corresponding location in the host Start menu.
When application publishing in Virtual PC has been enabled, the Remote Desktop Services WMI Provider in conjunction with the Win32_TSPublishedApplication class is used to add the application information to the Virtual PC’s registry. The published application is given a unique published application identifier (PAI) that is used to reference it from both the host and the VM. The PAI value is stored as command line parameter in the shortcut file in the host.
For example: "C:\Program Files\Microsoft Enterprise Desktop Virtualization\MedvHost.exe" /LaunchApp %SystemRoot%\system32\vmsal.exe "Windows XP Compatibility (Shared)" "||a93686d" "Pre-Auto Published Command Line"
It is also stored as a registry key in the Virtual PC Guest OS:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current version\Virtual machine\AppAllowList\<PAI>
These same PAI’s are also stored in the user’s registry on the host in:
HKEY_CURRENT_USER\Software\Microsoft\MEDV\Application Publishing\<Workspace name>\<PAI>
Without MED-V, Virtual PC publishes remote applications to host folder location “%APPDATA%\Microsoft\Windows\Start Menu\Programs\Windows Virtual PC\<VM Name> Applications”.
If for some reason, either an application that was installed prior to deployment does not appear where expected or it was added post-deployment and it does not get published. In the event that application shortcuts that are copied into the VM Start menu are not being published to the host Start menu, the following items should be checked: