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.
How do we modify assets of the app package in runtime for Windows store apps
120 Views Asked by Query21 At
2
There are 2 best solutions below
0
Chubosaurus Software
On
I'm pretty sure that directory is Read Only: See Access Denied Installed Location.
Why would you want to write to that directory in the first place? Why not go through the normal update process?
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in WINDOWS-PHONE-8
- How did windows application "phone link" open the webpage automaticly can IT also open the files on our computer
- Possible to create an app on Windows Phone (WP) using Visual Studio 2022 or later
- Development of old window phone Apps using flutter
- OpenID Connect in c# for Windows Phone app
- How to generate refresh and access token for Windows phone app
- Exception in Json response when Submitting to webapi from WP8
- Passing Class Object to WCF Service c# wp8
- Identify Store App Type
- Why connectivity plugin network handler not working when navigation happens
- How to scroll listbox automatically when Scrollviewer present above it has finished scrolling
- Pixel by Pixel color conversion using WriteableBitmap
- Read stream from absolute uri
- error unhandled exception during loading desiger for the first time in visual studio 2012
- windows phone emulator not displayed , showing error 0x80131500
- How to get font file from windows phone
Related Questions in WINDOWS-RUNTIME
- Linker errors when adding a native c++ static library to Windows runtime component (UWP)
- Linker issues while cross compiling for ARM(arm6ec) platform
- Byte Patching using winrt api (C++)
- Associating WinRT DeviceInformation objects with WMI objects (Win32_PnPEntity)
- System.PlatformNotSupportedException error in desktop App (.NET framework) VS2019
- IAsyncOperation "Completed" handler race conditions?
- IMetaDataDispenser::DefineScope() fails with E_NOTIMPL (0x80004001)
- Why does my C++/WinRT program with an IAsyncOperation take 2 seconds longer if I remove system("");?
- Python winrt how to get notification listener permission?
- Python winrt module: MouseDevice is not activatable
- How to use a custom MediaSource for a virtual camera? Also, how and where should I register the CLSID for my virtual camera?
- WinUI3 C++ Data Binding
- How to read images from memory to ImageSource in C++/WinRT (WinUI3)?
- Does anyone know how to use the IDragDropManagerInterop interface with a desktop application?
- How can I use the system's clipboard in a winui 3 program
Related Questions in WINDOWS-STORE-APPS
- Microsoft Partner Center Issues
- Microsoft Store Policy - User Generated Content
- Error while uploading a binary to StoreApp using API
- Publish a MAUI app for the Microsoft Store returns a ProcessorArchitecture error
- Dependency issue when publish a MAUI application for Windows Store
- Can you open devtools with a windows store app?
- How to create a new app in windows developer center
- Debug WinJS application in production
- Why is my Windows Application Packaging Project stripping all my native libraries from the published package?
- UWP and User Secrets in Deployed Apps
- How to confirm is a user knows the xbox pin in a UWP app?
- How to get refund information for a Windows Store app via API
- Incompatible types for comparison. Numbers, Text can't be compared
- Should TrySilentDownloadAndInstallStorePackageUpdatesAsync relaunch the app?
- How to determine if UWP app is running with windows open?
Related Questions in WINJS
- Override WinJS promises with native promises as a Chrome Extension content script?
- Debug WinJS application in production
- Winjs project - use File picker to select audio file and play it
- How to detect Xbox controller key press events in Windows 11 in Winjs UWP app?
- A WinJS SDK which breaks all jQuery plugins?
- How to enable Xbox One Developer Mode activation?
- how to run code when Microsoft toast notification button is pressed in javascript
- How to get Windows 10 version (e.g. 1809, 1903, 1909, ...) in a UWP app (C# or WinJS)?
- WinJS UWP javascript - how to read a file through a file input
- How much data can be in a LocalSettings container
- Generate PDF from HTML contents in Winjs
- UWP WebView third party Alternatives
- onpointercancel not triggered in Edge when user touches and scrolls the win-list item together
- UWP - Saving a png as jpg, I want the transparency to go White
- Saving a Canvas as an image in UWP
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.