Sharing settings with desktop app


  • Is there a recommended way to share settings between the Metro and desktop versions of an app?
    Wednesday, April 25, 2012 11:26 AM

All replies

  • Maybe not necessary, Windows on ARM has no desktop app.

    C++ DX11

    Wednesday, April 25, 2012 2:15 PM
  • We've had an x86/64 desktop app for many years, and we won't be abandoning it any time soon. We will also offer a simplified Metro version, but it is very likely that there will be many users who install both. It would be nice if they could share settings.

    Wednesday, April 25, 2012 3:31 PM
  • You can sharing the settings files in the document folder.


    Thursday, April 26, 2012 5:56 AM
  • "You can sharing the settings files in the document folder."

    Yes, but that seems sort of kludgy, plus there's always the chance that the user will notice the file there and delete it. I was hoping for something a little more robust.

    Tuesday, May 01, 2012 3:23 PM
  • Maybe desptop app can access metro app's local data folder

    C++ DX11

    Tuesday, May 01, 2012 4:54 PM
  • Yes, that's the fallback position if there's nothing better.
    Tuesday, May 01, 2012 5:09 PM
  • The recommendation is for Metro style apps and desktop apps to be independent from each other. Since sharing settings isn't recommended there is no facility provided to do so.


    Tuesday, May 01, 2012 9:57 PM
  • Right now, only Internet Browsers are allowed to sync settings between Desktop and "Metro-Style" (they are called "Metro-Style Desktop Apps"). But I guess, you are building something different.

    Currently, I can think about two options:

    1: Use SkyDrive? This will also your apps to sync settings across devices (if needed). More details: http://windowsteamblog.com/windows_live/b/windowslive/archive/2011/12/07/skydrive-apis-for-docs-and-photos-now-ready-to-cloud-enable-apps-on-windows-8-windows-phone-and-more.aspx

    2: Another way could be to use a tiny local webserver, which is accessable through Metro-Style apps and does the syncing. Such a webserver will use less than 1 MB of ram and can run in the background. You can write your own server in .NET quite easily or look here: http://en.wikipedia.org/wiki/Comparison_of_lightweight_web_server

    • Proposed as answer by Paul_X Tuesday, May 08, 2012 7:41 AM
    Wednesday, May 02, 2012 4:23 PM
  • We probably will use SkyDrive for users that have it, but the second idea is interesting for the rest. Thanks.
    Wednesday, May 02, 2012 5:17 PM