Received: from eggs.gnu.org ([2001:4830:134:3::10]:35846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKUrc-0006mc-75 for qemu-devel@nongnu.org; Wed, 29 Jul 2015 13:10:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKUrW-000631-H9 for qemu-devel@nongnu.org; Wed, 29 Jul 2015 13:09:56 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:34972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKUrW-00062H-Bm for qemu-devel@nongnu.org; Wed, 29 Jul 2015 13:09:50 -0400 Received: by wibxm9 with SMTP id xm9so210477963wib.0 for ; Wed, 29 Jul 2015 10:09:48 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id gw7sm25343213wib.15.2015.07.29.10.09.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 10:09:47 -0700 (PDT) From: Leonid Bloch Date: Wed, 29 Jul 2015 20:09:26 +0300 Message-Id: <1438189766-622-1-git-send-email-leonid@daynix.com> Subject: [Qemu-devel] [PATCH 1/1] qemu-ga: Prevent QEMU-GA VSS provider from being unregistered on reinstall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Previously, running the .msi would unregister the QEMU GA VSS service if QEMU GA was already installed on the machine, and then register it only if QEMU GA was NOT previously installed. This behavior caused the service to be registered only after the INITIAL installation, and any subsequent run of the .msi (to redo, repair, or upgrade the installation) ended in the service being unregistered. Now, the VSS service is still unregistered if QEMU GA is already installed (so that a fix or an update could be performed) but then it is registered again (if the GA is not being uninstalled) thus finishing the repair/upgrade correctly. Additionally, smooth upgrades and downgrades can be performed, as any run of the .msi will firstly remove the installed version, no matter what its version number is. Signed-off-by: Leonid Bloch --- qga/installer/qemu-ga.wxs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qga/installer/qemu-ga.wxs b/qga/installer/qemu-ga.wxs index 4e917a9..cd731c4 100644 --- a/qga/installer/qemu-ga.wxs +++ b/qga/installer/qemu-ga.wxs @@ -61,9 +61,9 @@ + IncludeMinimum="yes" IncludeMaximum="yes" /> @@ -136,10 +136,10 @@ - + - NOT Installed Installed + NOT REMOVE -- 2.4.3