我想通过Windows商店安装多个Windows商店应用程序
您好,我有以下要求 - 如果有人可以帮助我。您的快速回复和建议真的很赞赏。
这里我需要通过Windows应用商店安装大量的Windows应用商店应用(赢10)。
我有商店链接ms-windows -store:// pdp /?PFN = NewspaperDirect.PressReader_f09x14bt6ejbt点击此链接会将我重定向到商店。
这是我的步骤,我需要自动化:
1.单击Windows应用商店应用链接(例如ms-windows-store:// pdp /?PFN = NewspaperDirect.PressReader_f09x14bt6ejbt) - (这里我有100个链接)
2.单击安装按钮在Windows商店中。
任何建议,示例代码真的很感激。谢谢。
我尝试了什么:
我尝试过CodedUI,但无法成功。 c#的新手,因此面临问题。请帮助
Hello, I have below requirement - if anyone can help me here. Your quick responses and advises really Appreciated.
Here I need to install tons of Windows Store Apps through Windows Store (win 10).
I have store links "ms-windows-store://pdp/?PFN=NewspaperDirect.PressReader_f09x14bt6ejbt" on clicking this link this will redirect me to Store .
Here are my steps and i need to automate:
1. Click on Windows Store app Link (e.g. ms-windows-store://pdp/?PFN=NewspaperDirect.PressReader_f09x14bt6ejbt) - (Here i have 100 links)
2. Click on Install Button in windows Store.
Any suggestions, sample code really appreciated. Thanks.
What I have tried:
I have tried with CodedUI, but not able to success. New to c#, hence facing issues. Please help
参见启动Windows应用商店应用 [ ^ ]。
在C#之前我还没有进入过这种东西,所以我要留下一些代码不在视野范围内,让你自己解决。 (主要是IDE代码生成)
I've not gotten into this sort of stuff before in C#, so I'm gonna leave a bit of code out of view, and let you solve yourself. (Mostly IDE code generation)
using System;
using System.Diagnostics;
//using ... (I'm doing this from memory, so spare me)
public class DownloadStoreItems
{
public void DownloadLinks()
{
Process.Start("ms-windows-store://pdp/?PFN=NewspaperDirect.PressReader_f09x14bt6ejbt");
}
}
以上代码根本不是你需要的全部内容。这只是向您展示如何从C#代码加载网站的简单方法。对不起,这没什么帮助。
The above code is not at all what you'll need in it's entirety. This is just a simple thing to show you how you could load a website from C# code. Sorry this isn't much help.