- From: Kapil Shardha <
>
- To: "
" <
>
- Subject: [chef] RE: Re: Re: Re: Upgrading chef-client on Windows not supported?
- Date: Thu, 27 Feb 2014 21:36:45 +0000
- Accept-language: en-US
The MSI installer platform supports "Upgrade" scenario as long as the MSI has
an unique "Product Code" and "Version Number" included. I am not sure what
chef-client MSI does or how it has been authored but I have authored
installers using WiX that support "Upgrade scenario".
Thanks
-Kapil
-----Original Message-----
From: Noah Kantrowitz
[mailto:
Sent: Thursday, February 27, 2014 4:34 PM
To:
Subject: [chef] Re: Re: Re: Upgrading chef-client on Windows not supported?
On Feb 27, 2014, at 1:29 PM, Jeppe Nejsum Madsen
<
>
wrote:
>
>
On Thu, Feb 27, 2014 at 10:21 PM, Noah Kantrowitz
>
<
>
>
wrote:
>
Windows, unlike all other OSes, locks executable files while they are
>
running. The usual solution is to just move the old executables aside and
>
write the new ones in their place. Unfortunately there is no way to do this
>
atomically, so you often end up with tiny updater.exe binaries that the
>
original process launches (and then kills itself) to manage the update
>
process. I'm sure a pull-request would be happily accepted to add this
>
dance to the omnibus_updater cookbook and I'm happy to talk anyone through
>
other strategies for doing binary updates on Windows (might as well get
>
some benefit out of doing that for 3 solid years :-).
>
>
Yeah I guess that it is not easily done. I don't think this should be in
>
the omnibus_updater though as it's not just the .exe but the entire
>
embedded ruby env that might need replacing.
>
Yes, the problem is almost certainly the ruby.exe and other DLLs that are
active while Chef is running.
>
I think the chef-client MSI should handle this. Like many other windows
>
services it should be able to upgrade itself (preferably without a reboot,
>
but hey this is windows after all :-)
That would work too, I defer to others with more WiX experience as to how
hard it is to augment the MSI do this though.
--Noah
________________________________
This email and any accompanying documents may contain privileged or otherwise
confidential information of, and/or is the property of Education Management
Solutions, Inc. If you are not the intended recipient, please immediately
advise the sender by reply email & delete the message & any attachments
without using, copying or disclosing the contents. Thank you.
Archive powered by MHonArc 2.6.16.