简体   繁体   English

更改 windows 10 商店 uwp 应用程序的默认安装位置

[英]change default install location of windows 10 store uwp app

I have a windows 10 uwp app that runs fine when i have it sideloaded in my computer or any users computer where they have full admin priviliges.我有一个 windows 10 uwp 应用程序,当我将它侧载到我的计算机或任何具有完全管理员权限的用户计算机中时,它运行良好。 i use appxbundle and click on install button to install the same.我使用 appxbundle 并单击安装按钮进行安装。 Even powershell installation works fine.即使 powershell 安装工作正常。

Some of our clients don't have access to C: drive and the installation of UWP app is incomplete or fails because they don't have any install permissions.我们的一些客户无权访问 C:驱动器和 UWP 应用程序的安装不完整或失败,因为他们没有任何安装权限。

Is it possible to run UWP app stand alone or specify a different install location which is other than C drive where user has both read and write permissions.是否可以单独运行 UWP 应用程序或指定其他安装位置,而不是 C 驱动器,其中用户同时具有读取和写入权限。

I tried to use.exe generated in the bin folder of uwp x64/Release folder but that doesn't run as uwp doesn't support exe我尝试使用在 uwp x64/Release 文件夹的 bin 文件夹中生成的 use.exe,但由于 uwp 不支持 exe,因此无法运行

Currently, there is no such feature in UWP.目前,UWP 中没有此功能。 UWP can't change the install process when installing, which means UWP apps can't choose where apps should be installed. UWP 安装时无法更改安装过程,这意味着 UWP 应用程序无法选择应安装应用程序的位置。

But there is a setting for Windows 10 that could change the location where the UWP apps are installed.但是 Windows 10 的设置可能会更改 UWP 应用程序的安装位置。

  1. You could go to the Settings app and navigate to System > Storage .您可以 go 到 Settings 应用程序并导航到System > Storage
  2. Under the More Storage Settings heading click on the link that says Change where new content is saved .更多存储设置标题下,单击显示更改新内容保存位置的链接。

You can choose one drive from the drop-down menu under " New apps will save to " and then click Apply.您可以从“新应用将保存到”下的下拉菜单中选择一个驱动器,然后单击应用。 A new folder called " WindowsApps " will be created in the drive you've chosen.将在您选择的驱动器中创建一个名为“ WindowsApps ”的新文件夹。 And any new UWP app will be installed in this folder.并且任何新的 UWP 应用程序都将安装在此文件夹中。 Please note Windows 10 will only install new apps to the currently selected location.请注意 Windows 10 只会将新应用程序安装到当前选择的位置。 Existing apps do not get moved to the new location.现有应用程序不会移动到新位置。

Like this:像这样: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM