How to handle dependency files in a cross-platform manner?

Posted by Brian Knoblauch on Stack Overflow See other posts from Stack Overflow or by Brian Knoblauch
Published on 2010-12-30T16:35:07Z Indexed on 2010/12/30 16:54 UTC
Read the original article Hit count: 176

Filed under:
|

I'm working on updating an old app. It has some dependency files that live in the same directory as the app. Obviously this broke when Windows Vista came out (since it violates the API and Vista/7 now enforce that (XP didn't)).

Ideally, I'd like to avoid hardcoding anything into the app for just Windows. I can live with that if I have to though. I've already been down that path with pulling the APPDATA and LOCALAPPDATA environment variables, but that doesn't help any since they just give you the current user area... I need these to live somewhere accessible for all users, and I'd like to obey the Windows API expectations that they go into the all user appdata area.

Suggestions?

© Stack Overflow or respective owner

Related posts about java

Related posts about Windows