PDA

View Full Version : install postgre service


isaac.wbm
08-11-2009, 06:03 AM
hello,
- can setup factory install postgre service ?
- is there a way to open a port exception from windows and third party firewalls like kaspersky ?

Thanks

Ulrich
08-11-2009, 09:42 AM
- can setup factory install postgre service ?

Hello,

of course it can. As long as you know how to do it. You can't expect that a software knows about all existing products in the world, and that you can perform any action on these products with no effort on your part. No, this research would be your task. Once you know the command that has to be issued, Setup Factory will be able to perform this command in the way you need it.

For example, and I am just pulling this from my memory, MySQL is installed as a service with something like this:
File.Run(SessionVar.Expand("%AppFolder%\\mysqld.exe"), "--install service_name", SessionVar.Expand("%AppFolder%"), SW_SHOWNORMAL, true)
while FirebirdSQL installs with something like this:
File.Run(_TempFolder .. "/Firebird-2.0.3.12981-1-Win32.exe", "/SP /SILENT /NOCANCEL /COMPONENTS=\"ServerComponent,ServerComponent\\ClassicServerComp onent,ClientComponent\"", "", SW_NORMAL, true);
As you see, the syntax differs quite a bit. As long you know the correct command line, of course you will be able to install PostgreSQL as well.
- is there a way to open a port exception from windows and third party firewalls like kaspersky ?
Again, yes - it can. You can set an exception in the Windows firewall with
File.Run("netsh", "firewall set allowedprogram program=\"" .. SessionVar.Expand("%AppFolder%\\program.exe") .. "\" name=\"Description\" mode=enable", "", SW_SHOWNORMAL, true)
However, do you know the syntax of the command required to allow a certain program to bypass this third party firewall? If you don't, you have some research to do, then include the command in the On Post Install actions, and you are done.

Ulrich