问题
Installing my software on Windows XP was always easy. Everything went in the "c:\Program Files\myprogram" directory. This included:
- The executable program itself and any dlls.
- Readme.txt and License.txt
- The help files (.hlp or .chm or .pdf)
- Program settings that are not in the registry (.ini files)
- Sample data files for the program
- Log files that the program produces
(Am I missing anything?)
But I understand that some of these should not go into the "Program Files" directory on Windows Vista. Which ones shouldn't and where should they go instead?
Also, should I change my XP install locations to match Vista?
Addenum: Some really good information was given in an answer by François to another question which pointed me to Marco Cantu's excellent post: Non-Themed Windows Applications and Virtual Store
回答1:
The relevant MSDN details for data placement:
http://msdn.microsoft.com/en-us/library/bb762584(VS.85).aspx
and
http://msdn.microsoft.com/en-us/library/bb762494.aspx
回答2:
You can keep most of the files in Program Files, you just need to move any files that need to be written to out of Program Files.
- Program Files
- Program Files
- Program Files, or many all users
- %APPDATA% for each user
- Application Data folder for all users
- Per user or all users temp folder
来源:https://stackoverflow.com/questions/427164/during-installation-where-do-the-various-file-types-go-on-vista