WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

UAC

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Installing a program using Compatibility Mode

 Keywords:  Install Application Compatibility Mode XP

Question:

Just looking for a winbatch example of installing an application requiring Windows XP compatibilty mode. Command line switches or Registry key? Any help would be appreciated.

Answer:

By XP compatibility mode, are you referring to installing an application in an XP mode virtual machine? If not, take a look at the registry settings under
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
You 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