问题
Is there a standard convention for the types of files that go in \Windows\ versus those that go in \Windows\System32 ??
I'm working on an SDK that has a variety of DLLs a helper exe, and a Windows service exe. The previous guy who worked on the code put the two exe files in \Windows\ and the DLLs in \Windows\System32\ But it seems to me that they should likely all go in \Windows\System32\
Which would you do?
Edit: I am NOT trying to debate the merits of if they should go there at all. Plenty of apps install things to System32...especially for services or drivers (both of which I'm dealing with). Granted, I'm not saying it's right...as I said, I didn't create this initially...for the sake of this question. If those were your only choices...what goes where?
Edit: OK, point taken. I didn't really think I was going to be able to convince the "architect" of this project to move them out of either of those two directories... but at this point I'll try harder. Agreed...nothing should be put in those folders.
回答1:
They shouldn't go in either! Your application files go in your application directory, not in the Windows directories under any circumstances - those are for the ioperating system to use, not you.
And it doesn't matter whether your application is installing executables, DLLs, drivers, fonts, configuration files, whatever. They do not go in the Windows directories. The fact that a few badly designed and badly written applications do install things there is no execuse.
回答2:
I would put the files under Program Files where they belong. Windows and Windows\System32 are for the operating system's use only.
来源:https://stackoverflow.com/questions/926425/windows-versus-windows-system32-file-location-conventions