Received: from eggs.gnu.org ([2001:4830:134:3::10]:60958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMDAu-0004Yd-DD for qemu-devel@nongnu.org; Mon, 03 Aug 2015 06:41:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMDAo-0000m6-JH for qemu-devel@nongnu.org; Mon, 03 Aug 2015 06:40:56 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMDAo-0000m0-9N for qemu-devel@nongnu.org; Mon, 03 Aug 2015 06:40:50 -0400 Received: by wicgj17 with SMTP id gj17so99028285wic.1 for ; Mon, 03 Aug 2015 03:40:49 -0700 (PDT) From: Leonid Bloch Date: Mon, 3 Aug 2015 13:39:03 +0300 Message-Id: <1438598343-21075-2-git-send-email-leonid@daynix.com> In-Reply-To: <1438598343-21075-1-git-send-email-leonid@daynix.com> References: <1438598343-21075-1-git-send-email-leonid@daynix.com> Subject: [Qemu-devel] [PATCH v2] 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 Cc: Leonid Bloch , marcandre.lureau@gmail.com 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, downgrading is now prevented. If a user would like to downgrade a version, he/she must uninstall the newer version first. Signed-off-by: Leonid Bloch --- qga/installer/qemu-ga.wxs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/qga/installer/qemu-ga.wxs b/qga/installer/qemu-ga.wxs index 2c43f1b..968cc26 100644 --- a/qga/installer/qemu-ga.wxs +++ b/qga/installer/qemu-ga.wxs @@ -58,13 +58,9 @@ /> - - - - + @@ -110,6 +106,7 @@ + - - NOT Installed Installed + NOT REMOVE -- 2.4.3