Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Install Application Compatibility Mode XP
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\LayersYou might consider manually configuring the application for XP compatibility and then taking a look at the entries under the above key to figure out what you need to set.
To use an application in an Windows 7 XP mode virtual machine, you need to install the application to the virtual machine which obviously requires that the virtualization software and the XP mode virtual machine be installed and running on the system. I suppose you could automate starting the virtual machine but I am not sure how you would go about externally controlling the installation of an application on it once the machine was started. Never tried it.
As an example, If I have an application called 'FooBar.exe' in the 'c:\OldApp' directory, I might have my installation script create a value with the name "C:\OldApp\FooBar.exe" and a data value of "# WINXPSP3" under the "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" key.
It would look something like the following (all on one line of course)
RegSetValue(@REGCURRENT ,"Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers[C:\OldApp\FooBar.exe]","# WINXPSP3")
Article ID: W18315
Filename: Installing a program using Compatibility Mode .txt
File Created: 2011:08:03:14:54:34
Last Updated: 2011:08:03:14:54:34