Install software using powershell script


I am trying to install Notepad++ software using a PowerShell v2.0 script for one of my POC. I need to install the client’s software in my current project. As I am running the below script I’m getting errors.

As I am very much new to powershell scripting, can you please help in this? Is the above code right, or do I need to change anything else to install the software?


I use this snippet of PowerShell code for a lot of installs. As long as you can figure out the silent switch for “.exe’s”. For “.msi’s” just change out where Create() with Create("msiexec /I C:\temp\generic.msi /qn")


Install software using powershell script by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply