Reinstall an app

This topic contains 5 replies, has 3 voices, and was last updated by Profile photo of Olaf Soyk Olaf Soyk 1 week, 6 days ago.

  • Author
    Posts
  • #72529
    Profile photo of Tony
    Tony
    Participant

    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
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Most installer packages don't actually implement Reinstall.

  • #72532
    Profile photo of Tony
    Tony
    Participant

    Is there a way to do a repair?

  • #72533
    Profile photo of Olaf Soyk
    Olaf Soyk
    Participant

    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
    Profile photo of Tony
    Tony
    Participant

    Hi, chrome is just an example.

    • #72541
      Profile photo of Olaf Soyk
      Olaf Soyk
      Participant

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

You must be logged in to reply to this topic.