Windows 10 modern app or UWP app data folder - windows

I need to find the app data folder of a Windows 10 UWP app from within a Win32 app or powershell script (not sandboxed and sufficient privilege). If I know the AUMID, is there a way to find out where the sandboxed app files are installed?

Found the answer:
From the command line: cd %LOCALAPPDATA%\Packages\AUMID

Related

Creating a Mac OS application installer from .Net Core project

I am completely new to Mac OS and I have an application written in .Net Core codebase. Now all I want is to get it installed on Mac OS machines. My question is how can I create an installer (.DMG) file? At the moment My Visual Studio on Windows has created a .dll file with all other dependencies in the folder. Also for now most of the configuration values I have hard-coded but in the release build it has to be chosen by an end-user. So how can I prompt them for required directories? If you can provide me a link for documentation tool or any kind of suggestion would be greatly appreciated. At the moment if I want to run my application on Mac I have to use Terminal and then dotnet myApplication.dll in order to run application. My end goal would be to ask user for all required file paths and at the end create a System level Daemon (similar to windows service) to keep it always Alive. Would Xcode help in this situation? I already tried to open my .Net core project using xcode but it failed to load saying unsupported proect type.
Thanking in advance for your help!
If you wanted to use the standard macOS Installer to distribute your .net Core app, you would need to create a .pkg file. There seem to be ways to do this on the console or with Third Party Tools
sudo pkgbuild -install-location /Applications -component /path/to/your/application ./Desktop/YourPackage.pkg
There is an older manpage for pkgbuild, or you can try running man pkgbuild on your Mac.
I haven't tried this, but creating a .pkg is the normal way to install stuff on a Mac for applications where you can't just drag/drop the .app into the Application folder. (macOS applications are actually Directories with a special structure)
A .DMG is just a disk image - it doesn't "do" anything, it's just a container for files. You can create one with Disk Utility.

How to install Windows store app programmatically in UWP?

I want to install an windows store application programmatically from UWP application. I am able to redirect to the Windows store application page but what i want is the application should install automatically from store. Is there any to achieve this in UWP?
Thanks in advance.
Yes it is, but such app need Package Policy Control capability (see https://msdn.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations). Also you must have direct access to appx package of app to install. Then you can use PackageManager class. But this app can't be pushed to Windows store without special permission from MSFT or you must use sideloading (installing without Windows store). So it's almost unusable...

Desktop App Converter/Submit to Windows Store

I have an older application that I've converted using Microsoft's "Desktop App Converter" to create a UWP application. The application appears to convert fine, and I can install and run it on my local machine. Unfortunately, when I try to submit the application to the Windows App Store, I get the following errors:
Package acceptance validation error: We don't allow the capability you've specified: runFullTrust.
Package acceptance validation error: You don't have permissions to specify the following namespaces in the appx manifest file of the package DownloadManager.appx: http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities.
Are there any ideas what is causing this and what the fix is?
I'm running Windows 10 Enterprise Preview Version 1511, Build 14352.1002
According to this article from the official blog, you cannot submit your Centennial apps to the Store just yet. You have to follow the process they mention in their article:
Windows 10 Anniversary Update SDK Now Available! Windows Store Open for Submissions
"Windows Store Open for Submissions; Including Process for Submitting Desktop Bridge Apps:
In addition, we will begin the process of accepting apps using the Desktop Bridge. While we build the pipeline into the Windows Store to publish these apps, our team will work directly with developers to get their converted apps and games into the Windows Store. Contact our team here if you are interested in submitting an app using the Desktop Bridge to the Windows Store."
You can find in this article Preparing your desktop app for conversion to UWP features that should be removed from codebase.
As I see there is one Your app always runs with elevated security privileges.
Check this one ar may be your app contains some another feature from list

How to use the Windows File System from a Xamarin Application running on Windows

I have a Xamarin app that runs on Android, IOS and Windows 8.? It is essentially a “player” to display a proprietary document format. Formatting the documents so they look good on a small screen is a trial and error process. Essentially: Edit; Compile; Transfer to mobile; View; repeat;
To speed up this process, I am trying to build an emulator. I am using the Windows version of the app as a base for the emulator (because if I stay in Xamarin, I don’t have to rewrite all the code for Windows Forms)
The compiler is a Windows app. After compiling I know exactly where the file is located. When I run the emulator, it does not give me access to the Windows file system. I tried using PCLStorage Library. It stored the file here:
C:\Program Files\OpenSSH\home\30011765\AppData\Local\Packages\85930d70-750c-41a6-9b95-03faaed4159c_nh7s0b45jarrj\LocalState\ZDO\dev
I specified this part \ZDO\dev but have no idea how it selected the rest. Like why OpenSSH?
Question: Given this app is only going to run on Windows, is there a way to load a file as C:... ?
If not, is there another way for a Windows Forms App to share a file with a Xamarin Windows App?
I’ve spent several hours searching for a working example solution and have yet to find one.

getting filesystem on windows with cordova file plugin for UWP

Looking to create UWP APP using cordova.
The App needs to scan file system to get list of mp3 files on device, the device may be a desktop pc with windows 10 or a phone.
However the Cordova is able to see the virtual path and not C drive or D drive on device.
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, fail);
The winPath of the received FS object is something like below
C:/Users/{USERID}/AppData/Local/Packages/{AppNameSpace}_bzbj8h50hftv4/LocalState/
And this is root of the FS, can not move directory to C: drive, it is not allowing.
So Question is, does UWP or any windows platform does not expose Storage devices to Cordova apps? Or I am doing something wrong, as I am new to Cordova development.
For full file access in a UWP app, you will want to add WinJS framework to your app.
The plugins are going to be targeted to cross-platform support, and mobile devices have more restricted file access. Running on full Windows, you will have more capabilities available, but likely not supported by plugins.
Look at http://www.buildwinjs.com/ for WinJS.

Resources