PONTEM_RIA

I have an app that installs in C:\Documents and Settings\All Users\Application Data + Program files dir/. what would be a good solution for me not to have 2 different program installs for 2 different OS.. XP & Vista..



Re: Application Compatibility for Windows Vista Vista C:\Documents and Settings\All Users\Application Data installs

Aaron Margosis - MSFT

You shouldn't hard-code paths like that. Not only will your code fail on different versions of the OS, you'll also fail on different language versions of the same OS (e.g., French Windows XP does not have a "Documents and Settings" folder), and on systems where the users' folders are not on C: (roaming profiles, profiles on a different local hard drive, etc.).

Search MSDN for the term "CSIDL_COMMON_APPDATA" for references on how to install to that location in a portable manner.





Re: Application Compatibility for Windows Vista Vista C:\Documents and Settings\All Users\Application Data installs

Oliver Lundt - MSFT

Aaron is correct. If you are using managed vb or C# use SystemEnviornment object to get these paths without hard coding.