atrep - 2014-05-23

I cant figure out the parameter to change the default install path "C:\Program Files\" to the drive i want it to install on when i run my Powershell script. I am trying to do a silent install and cant change it manually, anyone know what parameters i can add to install it to the E:\? Below is my code and what i am trying in powershell

function install-Notepadpp(){
Start-Process -FilePath $install -ArgumentList '/InstallDirectoryPath:"E:\"','/S' -Wait -Verb RunAs
Write-Host “Notepad++ has been installed.” -ForegroundColor Green}

This is Windows calling the function to install the script