How to create files in working folder on Windows 10 UWP - windows

We have a Universal Windows 10 Platform (UWP) application containing an unmodifiable C library which creates web files in its working folder. These web files are then loaded by the WebView object for display. This architecture is working fine on other platforms, but it fails on UWP due to a lack of write access to the working folder. Apparently in a UWP app the working folder has special ACL protections which prevent creating files. Is there a way to create a UWP app which is permitted to create new files in its own working folder?
Note, we have tried using a different folder but in those cases the WebView object either will not load a file at all or does not load associated xsl, css, etc files. Very frustrating.
Cheers, Bill :-)

There is no way to write to the installation folder. This is by design to ensure seamless differential updates and clean uninstall of apps.
Have you tried setting the current working directory (to local appdata for example) before using the component?
Thanks,
Stefan Wick - Windows Developer Platform

Related

how can I package resource files in a winrt app

What is the best approach to deploy "Resource" files within a WinRT app - Windows Store app? I am working on an app that will use a number of html and css template files to generate multiple reports.
How would I go about packaging these files (potentially within folders) to be deployed with the windows store app?
Ideally I would like to specify folders with the CSS files and Images that can be copied to an app directory during installation so I can reference them in the subsequent reports, but with permission issues in store apps I would be OK even if these could be deployed to the pictures folder or some other accessible location
I tried the assets group in visual studio 2019 but that only allows individual files to be included and I would have to programmatically extract them which seems pretty kludgy.
some additional details
UWP app using winRT/CPP
On the device (primarily surface tablet) I would like a folder hierarchy of appReports/css, appReports/img, appReports/fonts
I would prefer to create these subfolders within the Pictures folder so that the users can easily find the reports
I would be using MSIX as the deployment strategy
If I was to bundle the template files into assets tree - I would need to do the following steps
a. create the subdirectories css, img and fonts within Pictures from the app
b. copy the template files to the respective folders
My thought was that there might be an easier way to do this external to the app since this is really only a one time setup situation

iOS share the localized files between native app and extension app

How do i share a file between native app and extension app. I even
tried to move my localized files to shared embedded framework but that
also not worked as my expectation. Is that possible to use the
containing app localized files in the app extension app?.
Any help that might be appreciated.

Packaging node-webkit application as ".appx" (for Windows 8 Store)

I want to know how I'd be able to package a node-webkit application as an .appx for the Windows 8 Store? I've been able to create an .exe of my application that works as long as it's in the same directory as its .dll's.
Here's how my directory currently looks:
application/
MyApplication.exe
ffmpegsumo.dll
icudt.dll
libEGL.dll
libGLESv2.dll
nw.pak
I'm unfamiliar with Windows development since I primarily use OSX, so I'm not sure what steps to take next to package this .exe as a .appx. Any help is appreciated.
I had worked with node-web-kit once, and I remember that your node app should have index.html file. WinRt apps are supporting Html5/Js. Try create WinJs app, put all files from nw.pak into project directories(html/css/js) and add your extended library like references to your project. I'm not sure about adding extend libraries, winJs app can give an error.

How to associate file during folder copy on Mac OS X

I involved with the development of an application that is intended to deploy on multiple desktop system including the Macintosh.
Our team decided we would like to a drag and drop installation for the Macintosh. However, the application is intended to ship with other content besides the application itself such as example files.
Originally these files were placed in the application bundle, however this was discovered to be problematic as the cross platform libraries used for the user interface will not allow someone to access the contents in the bundle. Also force users to have to dive into a bundle to find content does not offer a great user experience.
To that end, we decided to pull these examples file and what not out of the bundle and place them in a separated folder that lived along side the application bundle. To make sure everything including the examples and the application were copied together during the drag and drop installation, a new top level folder was created that contained everything to be copied.
The problem that now exists is that whereby when originally just the application bundle was copied over to the system, the copying of this top level folder does not cause file associations for the application to occur automatically.
What can be done to associate an application with certain files when someone installs by dragging a folder contain the application bundle?
I suggest you to deliver it separately in one dmg. So your dmg structure will look like next:
MyApp -> Applications
MyApp Examples -> Application Support
Simple, user-friendly, no problems with association.
Actually it looks like the file association is working after all. Someone reported a defect against the installation not making the associations. However, I just tested the installation on a clean system and copying over the folder does seem to make the associations.

How to deploy PhoneGap app in multiple Platforms

Created one app using phonegap in Xcode, want to deploy that into multiple platforms like android phone and etc.
Can any one please give the answer, how can i achive this.
Take the contents of the "www" folder of your application and copy them into the "phonegap/lib/DESIREDPLATFORM/sample/www" where DESIREDPLATFORM stands for the target platform (I.E.: blackberry, android, etc). All files should be copied, except for the "phonegap.js" file, which is specific to each platform.
after that, go to the command prompt, navigate to the phonegap "sample" folder, and compile the application with "ant DESIREDPLATFORM compile" (you already know what DESIREDPLATFORM stands for). It will create the appropriate package for the platform.
One way of doing that is to create a repository(either public or private depending on your need) of your assets folder and using the phonegap build app, you can find it here: https://build.phonegap.com. I have tested that and it works great.

Resources