Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzMQP-0003Xm-Kf for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 08:49:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzMQN-0003NY-Qz for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 08:49:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzMQL-0003NP-SZ for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 08:49:54 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WzMQG-00066k-EG for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 08:49:50 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 8821429CCD for ; Tue, 24 Jun 2014 01:49:46 -0700 (PDT) Received: from EX13-CAS-001.vmware.com (EX13-CAS-001.vmware.com [10.113.191.51]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 83B89B156F for ; Tue, 24 Jun 2014 01:49:46 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-013.vmware.com (10.113.191.33) with Microsoft SMTP Server (TLS) id 15.0.775.38; Tue, 24 Jun 2014 01:49:46 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Tue, 24 Jun 2014 01:49:34 -0700 Message-ID: <53A93B9B.8090905@vmware.com> Date: Tue, 24 Jun 2014 11:49:31 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: "pgsql-odbc@postgresql.org" Subject: Upgrading by double-clicking the .msi Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Upgrading the driver by double-clicking the new .msi file doesn't work: "Another version of this product is already installed." That's why we include the upgrade.bat file, which uses the right flags to msiexec to force reinstallation over the old version. But that's not very user-friendly. To fix that, we need to use the Windows Installer "major upgrade" feature. Browsing the web on this subject, most people seem to recommend treating every upgrade as a major upgrade, because that's the simplest method. Dealing with Minor or Small upgrades properly would require much more work, while a major upgrade just removes the old installation and installs the new one. For a small product like psqlODBC, that works fine. I'm following the WiX tutorial at http://wixtoolset.org/documentation/manual/v3/howtos/updates/major_upgrade.html on how to do that. Fortunately we already include an UpgradeCode and ProductId. So all we need to do is to add a MajorUpgrade tag to the .wxs file: And whenever we ship a new version, we must update the product code. Any objections? We'll need to somehow automate the generation of product codes. I'll try to figure out how to do that with MSBuild. Once we do that, we should stop shipping upgrade.bat. At the downloads website, I think we should just provide the plain .msi file, and not zip it anymore. (the MM and DLL binaries would be unchanged) - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc