#Powershell Install wrapper for exe installers

#Set Variables $location = Get-Location $installEXE = “audacity-win-2.0.5.exe” $param = “/silent” $Install = “$location\$installEXE” $procname = $installEXE.Replace(“.exe”,””)

#Write-host “param” $param #Write-host “will run this” $install $param

#Run the Install and wait for the process to finish & $install $param wait-process -name $procname

#Cleanup #Copy the lame mp3 encoder plugin Copy-Item $location”\libmp3lame-3.98.2\lame_enc.dll” -Destination “C:\Program Files (x86)\Audacity\Plug-Ins” -Force #Create a folder for and copy the configuration file New-Item “c:\users\default\appdata\roaming\Audacity” -type directory -force Copy-Item $location”\audacity.cfg” -Destination “C:\Users\Default\AppData\Roaming\Audacity” -Force -Recurse #Remove the desktop shortcut remove-item “C:\Users\Public\Desktop\Audacity.lnk”