0

I work at a retail store, where I get new computers in all day that I need to uninstall certain programs from (like McAfee) and install certain programs on (like Java, Silverlight). Until now I have been using deCrapifier and ninite to get this done, but i was wondering if I could make a script that would automatically do this. A script that i could put on a USB and just run one time on each computer.

Could i accomplish this using a powershell script mabye?

Andrew G
  • 1
  • 2
  • Programs store their uninstall string under `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall` in the registry. Paste the `uninstallstring` value into a batch file. –  May 26 '16 at 12:29
  • 1
    The only problem is that `UninstallString` is often not correct. Next to it, both 32 and 64 bit path should be checked – Andrey Marchuk May 26 '16 at 12:34

2 Answers2

1

Yes, you can! Provided you know the software you are going to install, and have administrative rights. It will take you some time to get it right as you need to detect each of the software separately and potentially follow different steps to uninstall, but nothing is impossible.

Andrey Marchuk
  • 13,301
  • 2
  • 36
  • 52
0

Many of your suggested examples (such as Java, and SilverLight's /q switch) have "Silent," or "Quiet" installers that do everything for you. These are simple to launch from a batch file, or even via PowerShell if you'd like.

Additionally, for uninstallations, if you know the application's name as it exists on that box (exactly), you can use PowerShell to uninstall applications, as well.

Community
  • 1
  • 1
gravity
  • 2,175
  • 2
  • 26
  • 34