Search code examples
windowspowershellexecutablepostgresql-9.1windows-server-2012

How to execute a PostGre exe file with silent mode?


Hy,

I would install PostGreSQL 9.1 on a Windows Server 2012. I want to used a PowerShell script. With my JDK executables file, I use Start-Process "Myfile" -ArgumentList "/s" -Wait But the argument \s don't work with my PostGre executables file.

Have you an idea ?


Solution

  • I have used this command : Start-Process $installFile -ArgumentList "--unattendedmodeui minimal --mode unattended --prefix $dest --datadir $dest\data --servicepassword $pwd" -Wait

    Thanks for your help ! :)