Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YIfp8-0001l4-1H for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Feb 2015 15:55:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YIfp7-0006El-1U for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Feb 2015 15:55:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YIF9p-0003gd-Sa for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 11:27:09 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YIF9k-0005Lt-6Z for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 11:27:08 +0000 MIME-Version: 1.0 Subject: BUG #12728: Install fails McAfee VirusScan Ent. Unable to write inside the TEMP environment variable path. To: pgsql-bugs@postgresql.org From: james.slade@maersk.com Date: Mon, 02 Feb 2015 11:26:24 +0000 Message-ID: <20150202112624.2603.74722@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12728 Logged by: James Slade Email address: james.slade@maersk.com PostgreSQL version: 9.3.5 Operating system: Window 7 64 bit. Description: Problem: An issue for installing on corporate machines running McAfee VirusScan Enterprise. The bug is in the IsPathWritable function of the prerun_checks.vbs script. There is a “bug” in one of the installation scripts for PostgreSQL. In order to ascertain if the %TEMP% directory is writable it attempts to create a file. In doing so it tries to create a file with a double extension “c:\temp\xxxx.tmp.tmp” which triggers a McAfee rule that blocks the action. Workaround 1: Uninstall McAfee VSE while installing PostgreSQL then re-install McAfee. Workaround 2: Run the PostgreSQL with “—extract-only 1” on the command line. It will extract all the files without doing the above check. We can then bypass the check and replicate the setup process by running the following commands: • "C:\Program Files\PostgreSQL\9.3\installer\vcredist_x64.exe" /passive /norestart • cscript //NoLogo "C:\Program Files\PostgreSQL\9.3/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\9.3" "C:\Program Files\PostgreSQL\9.3\data" 5432 "DEFAULT" 0 • cscript //NoLogo "C:\Program Files\PostgreSQL\9.3\installer\server\startupcfg.vbs" 9.3 "NT AUTHORITY\NetworkService" "****" "C:\Program Files\PostgreSQL\9.3" "C:\Program Files\PostgreSQL\9.3\data" "postgresql-x64-9.3" • cscript //NoLogo "C:\Program Files\PostgreSQL\9.3\installer\server\createshortcuts.vbs" 9.3 "postgres" 5432 "PostgreSQL 9.3" "C:\Program Files\PostgreSQL\9.3" "C:\Program Files\PostgreSQL\9.3\data" "postgresql-x64-9.3" • cscript //NoLogo "C:\Program Files\PostgreSQL\9.3\installer\server\startserver.vbs" postgresql-x64-9.3 • cscript //NoLogo "C:\Program Files\PostgreSQL\9.3\installer\server\loadmodules.vbs" "postgres" "****" "C:\Program Files\PostgreSQL\9.3" "C:\Program Files\PostgreSQL\9.3\data" 5432 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs