If you failed to solve your problem after following below 2 links, http://1stopit.blogspot.dk/2011/01/postgresql-83-and-84-fails-to-install.html http://igordcard.blogspot.dk/2012/03/unable-to-write-inside-temp-environment.html try following last solution which will 100% work: (in my case it worked for Postgre 9.2) Step 1: Winkey -> Run -> type " %windir%\inf\ " without quotes. Step 2: Right click on wsh.inf and select install. And all done. Now your installation will work and you can run any .vbs file also. -- View this message in context: http://postgresql.1045698.n5.nabble.com/PostgresQL-intallation-error-Unable-to-write-inside-TEMP-environment-variable-path-tp5729847p5730009.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general