Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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
Posted
Updated 19-May-16 22:12pm
Comments
VenHayz 19-May-16 20:59pm    
It's pretty deep to emulate a user to click a button on another application. It would be best to find the EXACT location (link) that the application is downloading from. Or I can create an app that just opens all the store windows to allow you to quickly click through them all.
VenHayz 19-May-16 21:05pm    
I just saw the part where you said you have 100 links... This will be a lot harder than I thought. (Atleast for me.)

 
Share this answer
 
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)
C#
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");
    }
}


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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900