If I'm not mistaken, there is an option in TweakUI that does just that.

I couldn't find it. It does have a big-ol' list of special folder locations that you can configure. C:\Program Files is not on the list. Maybe it's somewhere else in TweakUI.

Its list of folders seems to correspond with the ones returned by my program. My program's prettier, but doesn't have an Edit button.
_________________________
-- roger