Skip site navigation (1) Skip section navigation (2)

pginstaller - pginst: Fix two Vista issues found recently: Fix 1 *****

From: dpage(at)pgfoundry(dot)org (User Dpage)
To: pgsql-committers(at)postgresql(dot)org
Subject: pginstaller - pginst: Fix two Vista issues found recently: Fix 1 *****
Date: 2008-02-26 10:07:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Fix two Vista issues found recently:

Fix 1


On a Vista machine without the VC++ runtimes preinstalled, initdb will
fail. We fix that by bundling the vc_redist.exe runtime installer in
both the main installer package, and now in the no-installer package.
SETUP.bat and UPGRADE.bat are modified to run the runtime installer
with minimal UI, prior to launching the main installer.


- We still ship the runtimes in the main installer so pre-Vista
machines can ignore SETUP.bat and the external installer if required.
- The version of vc_redist.exe shipped is that supplied with Visual
Studio, *not* the one offered for free download on the Microsoft
website. The latter version adds a second IExpress wrapper with a
EULA, and therefore requires a difference command line to install. The
correct version must be used.
- Users repackaging/silent installing the MSIs are responsible for
pre-installing the runtimes on their target machines.

Fix 2

On Windows Vista, a service set to run with a user account of
<machinename>\<username> will cause the Service Control Manager to
start the Netlogon service as a dependency of PostgreSQL in some
circumstances. This fails on standalone machines as Netlogon will
terminate because it knows it's not on a domain and shouldn't be
needed, however this causes the SCM to terminate startup of Postgres
as well. This is resolved by using a user account in the form
.\<username>. To avoid using that potentially unclear notation in the
installer UI, the patch adds a SCMSERVICEDOMAIN property which is set
during the ServiceValidate action and used when installing the
service. If the domain specified matches the machine name, it sets it
to '.', otherwise it sets it to the value of SERVICEDOMAIN (which may
have been set to an actual domain name).


Modified Files:
        pginstca.c (r1.119 -> r1.119.2.1)
        setup.bat (r1.2 -> r1.2.2.1)
        upgrade.bat (r1.7 -> r1.7.2.1)
    pginst: (r1.5 -> r1.5.2.1)
        pginst.proj (r1.13.2.1 -> r1.13.2.2)
        pginst.wxs (r1.225.2.1 -> r1.225.2.2)

pgsql-committers by date

Next:From: User DpageDate: 2008-02-26 10:08:32
Subject: pginstaller - pginst: Fix two Vista issues found recently: Fix 1 *****
Previous:From: Peter EisentrautDate: 2008-02-26 08:23:31
Subject: pgsql: Need more dependencies to get the build order right when

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group