I can get a handle to my app package using Windows.ApplicationModel.Package.current.installedLocation property. Please can you tell me if its possible to replace files in the package with newer ones during runtime. please provide snippets if possible.
Your package location is read-only by design. If you want to replace those contents at runtime, then take this strategy:
Note that you can use ms-appx:/// and ms-appdata://local/ URIs to get to files via StorageFile.getFileFromApplicationUriAsync, rather than getting a StorageFolder first. This can simplify the code.