qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] qemu-ga: Prevent QEMU-GA VSS provider from b


From: Leonid Bloch
Subject: Re: [Qemu-devel] [PATCH v2] qemu-ga: Prevent QEMU-GA VSS provider from being unregistered on reinstall
Date: Mon, 3 Aug 2015 19:55:43 +0300

Hi,

On Mon, Aug 3, 2015 at 6:30 PM, Marc-André Lureau
<address@hidden> wrote:
>>> I think the root of the problem is that the wxs doesn't follow the
>>> "component rules": "qemu_ga" shouldn't contain various libs and
>>> executable. Instead, each file should have its own component. Then I
>>> think RemoveExistingProducts would actually remove only the components
>>> that are to be upgraded. And that REINSTALLMODE trick wouldn't be
>>> necessary. I would fix to follow the principles recommended here:
>>> https://msdn.microsoft.com/en-us/library/aa368269%28VS.85%29.aspx.
>> You are right, however here, the goal is just to install one single
>> file - qemu_ga.exe, and 6--8 libs to support it. All into a single
>> directory. No complicated scenarios or databases to retain. In such a
>> case, don't you think that it will actually be safer and more robust
>> to just reinstall everything upon upgrade? It's not a problem to wrap
>> each file in its own "Component", but it will add unnecessary clutter
>> to a code that does something extremely simple, imho.
>
> I am a little bit scared by the other kind of problem Windows
> Installer might have when you don't follow the component rules,
> crippling the wxs with tricks/workaround like this one. I think it
> will make maintainance and upgrade easier to follow recommendations.
I understand your concerns. I have made a separate Component for each
file, but REINSTALLMODE still needs to be set to "amus" for the files
to be copied correctly. This is because all the files are removed
during RemoveExistingProducts, but unless REINSTALLMODE is set to
"amus", the files that were identical before the upgrade are not
copied. Now this is not a trick or a workaround, and the updated WXS
also follows recommendations regarding components and GUID formatting
(changed that also, since your concerns regarding Windows Installer
are justified). Sending the patches shortly.
> --
> Marc-André Lureau

Thanks for your remarks!
Leonid.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]