Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   postgres password problem (http://forums.winamp.com/showthread.php?t=267329)

ajay662 7th March 2007 17:26

postgres password problem
 
I see this problem discussed many times but do not see a solution posted in the forum yet.

Many postgreSQL commands such as "psql", "pg_dump" etc. prompt user for the password. Yes it is possible to configure postgres otherwise, but we don't have those options. If you want to run those commands from NSIS script, is there a way to pass the password silently from the script so user is not prompted.

If anybody has a working solution, would appreciate the response.

Thanks.

ajay662 8th March 2007 14:59

I tried several options. The only thing that worked for me is to set the environment variable for the installer process and its children.

System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("PGPASSWORD", "xxx").r0'


All times are GMT. The time now is 04:17.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.