I just came up with an imagination about changing path where
software's installed.
When I setup an application on Windows vista(or 7),
the installed path is different from windows XP. right?
What i want to do is that i want to change the installed path on Windows Vista or 7 into the same path as windows XP.
I guess, if i send message of windows version to the applicatioin i am installing, it would misunderstand the OS version. So, i would set the installed path of Windows XP.
When I setup an application on Windows vista(or 7),
the installed path is different from windows XP. right?
What i want to do is that i want to change the installed path on Windows Vista or 7 into the same path as windows XP.
This is not true. All three OS' install software in %SystemDrive%\Program files by default.
Phiru wrote:
I guess, if i send message of windows version to the applicatioin i am installing, it would misunderstand the OS version. So, i would set the installed path of Windows XP.
There is no such thing as SetVersionEx(). The version of the OS is read-only. The only thing that you can do is apply a shim DLL to the installer using the compatibility tools provided by Microsoft.
Windows just write for example the string XPSP2 in a registry key to mark a program run in compatibility mode (i can't tell you where, as I write this from my phone right now, but it is very easy to find).
Don't really know if it is only used by explorer or not, but you could do the same as windows do, then call ShellExecute().