1
A
回答
2
如注释中所述,由于沙盒环境,您无法直接从Windows应用商店应用启动可执行文件。但是,您可以使用launcher API来启动与文件关联的可执行文件。因此,您可以在自定义文件扩展名和要启动的应用程序之间创建文件关联。然后,只需使用启动程序API打开具有自定义文件扩展名的文件即可。
public async void DefaultLaunch()
{
// Path to the file in the app package to launch
string imageFile = @"images\test.png";
var file = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(imageFile);
if (file != null)
{
// Launch the retrieved file
var success = await Windows.System.Launcher.LaunchFileAsync(file);
if (success)
{
// File launched
}
else
{
// File launch failed
}
}
else
{
// Could not find file
}
}
相关问题
- 1. Windows 8从桌面应用程序启动“metro”应用程序?
- 2. 从Flex4 mxml桌面应用程序启动Windows应用程序
- 3. 如何从asp.net web应用程序启动远程windows桌面
- 4. 启动桌面应用程序Chrome
- 5. 桌面应用程序缓慢启动
- 6. 从Rails应用程序构建Windows桌面应用程序
- 7. 如何将Windows桌面应用程序转换为Mac桌面应用程序?
- 8. 从Swift应用程序启动App Store
- 9. 如何将Windows Phone Store应用程序与Windows桌面应用商店应用程序链接在一起?
- 10. 从桌面运行Windows Store应用程序
- 11. Tidesdk - 在Windows启动时启动桌面tidesdk应用程序
- 12. 的Windows 8从桌面应用程序
- 13. 桌面应用程序(Windows应用程序)连接Windows手机
- 14. 如何使java桌面应用程序移动应用程序
- 15. 如何从我的应用程序启动iTunes Store应用程序?
- 16. 如何直接从我的应用程序启动App Store应用程序
- 17. 带桌面应用程序的java桌面应用程序
- 18. 关联App Store应用程序和桌面应用程序的方法
- 19. 使用Metro风格的应用程序启动桌面应用程序
- 20. 从桌面应用程序启动Metro风格的应用程序
- 21. 从Windows 10通用应用程序启动Cordova应用程序
- 22. 用于启动PHP应用程序的Windows桌面图标
- 23. 自动启动Windows 8桌面应用程序认证要求
- 24. Windows 10 UWP应用程序作为桌面应用程序
- 25. 提供Windows 8应用程序和桌面应用程序
- 26. 将桌面应用程序嵌入Windows 8应用程序
- 27. 从Windows应用程序启动WebApi应用程序
- 28. Windows Phone 8 - 从应用程序内启动应用程序
- 29. 从Silverlight应用程序启动远程桌面
- 30. 将桌面应用程序发布到Windows Store
'Process.Start'如何? – Herdo
这不是不可能的。和问题看起来像重复http://stackoverflow.com/questions/17969019/is-there-a-possibility-to-start-another-app-or-program-from-a-windows-8-store-ap – feeeper
@Herdo此命名空间在Windows应用商店应用中不可用 –