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
119 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
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in WINDOWS-PHONE-8
- Deployment failed because no Windows Phone was detected when using Windows Phone Emulator
- Ellipsis inside button content Windows Phone
- Binding.StringFormat doesn't adhere to CultureInfo.CurrentCulture
- Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?
- Application configuration files for Windows Universal app
- Cordova 'deviceready' event firing twice on wp8
- Input cursor windows phone phonegap
- How can I create a simple text file on a windows phone (8.1) that can be accessed trough USB cable?
- Windows Phone 8.1 : how to Launch an Installed app From My app
- Receiving shared content using windows phone 8.0
- How can we run camera as background view in windows phone 8?
- Windows Phone local toast notification Text wrapping and image is not showing
- OneDrive SDK & background task WP8.1
- Windows Phone 8.1 Emulator Xde.exe stops working when clicking on "tools"
- FileNotFound when renaming photo WP8
Related Questions in WINDOWS-RUNTIME
- Is it possible to get user's Microsoft Account (with permission) via code?
- Unable to resolve property '%1' while processing properties for Uid '%0'
- How to check if Windows device is phone or tablet/pc?
- WinRT Extract Thumbnail from RAW image format
- How many items can we put in winrt listview
- How to debug missing dlls on Windows 10
- Where do I call an async method from?
- converting string to a double in visual c++ by parsing
- WinJS Issues | Windows 8.1 and Windows Phone
- Create Page custom animations in Windows Phone 8.1 (Windows Runtime)
- WinRT control to render XAML UIElement
- Gapless looping in Background Media Player for Windows Phone 8.1
- How to update a progress bar based on a form in WinRT?
- data binding property of a other control to a style while animating it
- ScaleTransform.ScaleY UIElement without keeping space reserved
Related Questions in WINDOWS-STORE-APPS
- Serializing TypeInfo / Type across .Net Platforms
- Is it possible to get user's Microsoft Account (with permission) via code?
- Unable to resolve property '%1' while processing properties for Uid '%0'
- Application configuration files for Windows Universal app
- Public IDictionary member of ViewModel class will not serialize via DataContractSerializer
- Trying to add images (tiles) to a map
- Cropping Image with Xamlcropcontrol for UI and WriteableBitmapEx
- GetTypeInfo Performance in Windows Store Apps
- How to add "Store app" project template to Visual basic?
- Save Task<string> type to String giving Catastrophic failure
- How to handle Windows Errors in Windows HTML/CSS/JS script?
- Windows Store Apps, download multiple files with threads
- Add-AppDevPackage.ps1 asking for Name[0] parameter
- How to achieve AlarmApplicationManager AlarmAccessStatus as AllowedWithWakeupCapability?
- How to convert a Chinese string to english for windows phone store apps[Javascript]
Related Questions in WINJS
- something stopped me in winJS
- Callback when WinJS bindings have been processed and rendered
- WinJS Issues | Windows 8.1 and Windows Phone
- How to change keyboard language programmatically in windows 8
- Windows Phone 8.1 WinJS Appbar disabled property not working
- Access is denied for WinJS.xhr Post?
- Apache Cordova backbutton event not fired on Windows Phone (universal)
- Winjs for windows 10 UWP APP
- Use SASS to generate CSS for Windows Store App Project?
- WinJS Custom Control Events "invalid argument"
- oniteminvoked not firing WinJS Listview
- Can I disable the screenshot option on the Windows 8 share bar?
- Cannot install VCD file UWP installCommandDefinitionsFromStorageFileAsync
- MobileServices.web.js unauthorized api call
- Jquery Not Working Windows Universal App
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 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.