Silent installation of Postgres and creation of the base in installer

4

How can I embed the PostgreSQL database in my WinForms system installer?

I can even put it as a prerequisite to install before the system binaries, however, I wanted to do a silent installation. I would also like to know how to create the bank of my application during installation.

    
asked by anonymous 22.09.2016 / 14:54

1 answer

6

If you call the postgresql executable by passing the --help parameter it will open the information:

Youmustenterthepassword,thepathoftheinstallation,youcandefineitthroughtheparameters.

Soyoucancallitlikethis:

msiexec/ipostgresql[versão].msi/qrINTERNALLAUNCH=1ADDLOCAL=server,psql,docsSERVICEDOMAIN="%COMPUTERNAME%"
        SERVICEPASSWORD="SecretWindowsPassword123" SUPERPASSWORD="VerySecret" BASEDIR="c:\postgres" TRANSFORMS=:lang_de

I've never used the Advanced Installer, but I've already used NSIS Compiler , and I currently use the Inno Setup Compiler , I know you can do this without problems ..

Reference: link

I hope I have helped!

    
22.09.2016 / 15:25