none
How to check if windows store app is installed RRS feed

  • Question

  • We are dealing with annoying store app where it will install, but doesn't create any shortcuts (via SCCM).

    The idea I cam up with is to setup a 2nd copy as a dependency in SCCM so once the install completes a script checks that the store app is there and copies the necessary shortcuts.

    I can get the application to show with the command

    Get-AppxPackage-Name$Name

    My difficulty is I'm not clear / can't find information on taking that and making it into a If-Then statement so that If the specific store app exists some action will then occur.

    Any advice would be appreciated.


    A+, Network+, Security+, Microsoft MCP, MCDST, MCSE 2003, MCSA 2008

    Thursday, August 22, 2019 3:38 PM

Answers

All replies

  • Simple kindergarten PowerShell. Have you graadualted form pre-school PS yet?

    if(Get-AppxPackage -Name $Name){
       ….


    \_(ツ)_/

    Thursday, August 22, 2019 4:49 PM
    Moderator
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Friday, September 6, 2019 11:58 AM
    Moderator