Reinstall an app

Welcome Forums General PowerShell Q&A Reinstall an app

This topic contains 5 replies, has 3 voices, and was last updated by

 
Participant
1 year, 4 months ago.

  • Author
    Posts
  • #72529

    Participant
    Points: 0
    Rank: Member

    Hi, I've been struggling with this for a little while. I'm trying to reinstall or repair an app on a local machine.

    $reinapp = Get-WmiObject -Query "select * from win32_product where name='chrome55'"
    $reinapp.reinstall()

    If I change it to uninstall everything works fine. Any ideas?

  • #72530

    Keymaster
    Points: 1
    Rank: Member

    Most installer packages don't actually implement Reinstall.

  • #72532

    Participant
    Points: 0
    Rank: Member

    Is there a way to do a repair?

  • #72533

    Participant
    Points: 2
    Rank: Member

    Do you need this on a regular base? Is it really chrome you need this for? I'm just asking because chrome is often updated. The current version is 59. So when you're looking for 55 it might be already a newer version. It could be easier to just remove the app and install again the current version or even the old version because it's gonna be updated automaticly anyway.

  • #72535

    Participant
    Points: 0
    Rank: Member

    Hi, chrome is just an example.

    • #72541

      Participant
      Points: 2
      Rank: Member

      OK. The recommendation is still the same. Just uninstall and install again.

The topic ‘Reinstall an app’ is closed to new replies.