07-09-2020 12:58 PM
07-09-2020 12:58 PM
Is there any way to write files to the "real" %APPDATA% location from a binary that is installed via an MSIX installer? I.e. I would like to write a file to such a location in such a way that it is visible to any other program that is installed on my system.
The background for this is as follows: I'm trying to create an MSIX installer for the Julia programming language. One very, very key feature is integration with Jupyter clients. The way programming languages integrate with Jupyter clients is that the programming language should write some files into the folder %APPDATA%\jupyter\kernels, and then Jupyter clients read those files to integrate the programming language into their UI. You can read the spec for the Jupyter side of things at https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs.
The problem I'm running into now is that my MSIX installed Julia version can try to write the necessary files into the %APPDATA%\jupyter\kernels folder, but any Jupyter clients won't see those files because in truth the files of course were not written to %APPDATA%\jupyter\kernels, but the virtualized location for Julia...
Is there any way around this? What I really need is some way to say, from the Julia binary, "Hey, I need to write some files into the folder %APPDATA%\jupyter\kernels, the real one, not a virtualized one".
Given how popular and central Jupyter is to the whole data science ecosystem, it would be really good if there was some way to solve this... If nothing else, maybe MS could add a hard exception to the folder `%APPDATA%\jupyter\kernels` to not virtualize that specific location ever, for any app?
07-10-2020 09:09 AM
Yes there is. Check out the following article from Advanced Installer:
Please keep in mind that packages created this way can not be directly installed nor can the deployed through the Microsoft Store. But you can install them using command line or an MDM solution.
07-14-2020 12:13 PM
@Hauke Hasselberg Thanks, interesting!
I think for us then the question is whether we might get permission from MS for the store to have the unvirtualizedResources capability... Python has it, and Julia as a product seems to be in exactly the same category, so maybe there is hope? Has anyone had experience with store submissions that require that? Is there someone from MS who could work with us pre store submission on this, or is the right strategy to just submit to the store and hope for the best?
07-14-2020 02:00 PM
Yes, you can request approval when submitting your package and explain why Julia needs it and is in the same category as Python. The process is outlined here - https://docs.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations#restricted-capabi....
You can also get approval before you're submitting your app which is probably the better option in your case, the page says
"To do so, visit the Windows Developer support page. Select Developer support topic Dashboard issue, Issue Type App submissions, and Subcategory Other. Then describe how you are using the capability and why it is necessary for your product. If you do not provide all the information necessary, your request will be denied. You may also be asked to provide more information. Note that this process typically takes 5 business days or longer, so please submit your request well in advance."