I want to install old software on Windows 7, but with the compatibility mode (for XP Service Pack 2).

I can do this using the Wizard or by changing the file properties to run in that mode.

However, is there a Run Command line option to run a setup.exe under compatibility mode?

For example:

cmd> c:\windows\system32\compatibility.exe "c:\program files\setup.exe" XPSP2

Something like that?