nstarzynski / munki

Automatically exported from code.google.com/p/munki
Other
0 stars 0 forks source link

FEATURE REQUEST: add reinstall option in MSC (Munki2) #351

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There are situations where having the ability to reinstall a package would be 
useful. This could be implemented by recognizing an option-click on "remove" to 
offer reinstall instead.

A scenario: A self-Install package has a payload that applies values to the 
currently logged in user's ByHost preferences, so they only affect the current 
user. Or a script which customizes the current user's Dock, Desktop, or other 
user-level items.

In order to apply those settings in a different/new user account, the package 
needs to be installed again while that user is logged in.

Original issue reported on code.google.com by david.iw...@gmail.com on 17 Jul 2014 at 5:54

GoogleCodeExporter commented 8 years ago
1) Users would never discover that option-clicking meant "reinstall". 
Additionally, this is a WebView, so I'm not entirely sure we can react to the 
option key being pressed.

2) Munki doesn't really support re-installation. Even if the UI allowed 
selection of an item for re-install, Munki would see the item is already 
installed and decide there was nothing to do. The only way to get a reinstall 
in Munki is to remove the receipt or installs item that Munki uses to determine 
installation state. See 
https://code.google.com/p/munki/wiki/HowMunkiDecidesWhatNeedsToBeInstalled for 
more info on this.

3) It sounds like your use case would be better addressed by a type of 
optional_install that is basically "install and forget"; that "installing" it 
causes the installation to run, but that no receipt is left and the item is 
automagically removed after install from the SelfService manifest. I've 
discussed such an idea with some Munki admins. This will require some thought 
and experimentation to get the correct functionality. It will NOT be added to 
the initial official release of Munki 2.0, but could be considered for a later 
release.

Original comment by gregnea...@mac.com on 17 Jul 2014 at 6:12

GoogleCodeExporter commented 8 years ago
No worries - didn't expect it would be something quick and easy to do. Idea 
came to me and wanted to at least get it in front of you for future 
consideration.

Original comment by david.iw...@gmail.com on 18 Jul 2014 at 1:51