Where to install read-only app content


#1

What's the preferred location to install read-only app content on Windows? (I'm not very famiar with Windows)

I'm currently having innosetup install the content to C:\Program Files (x86)\[My App Name]\

Is that the right place to put it? Or should it be placed within one of JUCE's special locations? perhaps commonDocumentsDirectory?

thanks!


#2

Writing data to Program Files is an outdated and insecure method. You would have to force the user to give your application admin rights - which is crazy.

I suggest having a read: http://www.rajapet.com/2013/12/its-2013-stop-trying-to-write-to-the-program-files-folder-already.html


#3

To be specific: My app doesn't modify the content, just reads it. Only the installer writes to it. And it's not per-user. Should I install to File::commonApplicationDataDirectory?


#4

Should I install to File::commonApplicationDataDirectory?

Yes, I think that's the correct place. At least, that's how I am doing it since years