dulajshare123 / munki

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

munki 2 - add ability to provide user acceptance on a per package basis for optional installs #350

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in short, if I click "install" on an optional install, have the ability to be 
able to display an "accept | cancel" alert with a custom message.

The scenario here is for (in my particular case) products like EverNote, 
DropBox, OneNote etc that have a cloud component or capability to store 
information off site. In this case I'd like to be able to display a quick 
dialog that the product is subject to internal policy regarding cloud storage, 
which the user can accept (continue with the installation) or cancel (install 
is aborted). The alternate is to have this policy in the description but 
viewing the application description is not currently mandatory to install.

This scenario extends to any software we'd like to offer with conditions e.g. 
"this software has no internal support", "use at your own risk" or pretty much 
anything else we'd like to make sure the user has to accept to before 
continuing the install. More soundbite than EULA but that's the gist of it.

I already have code that does all of this that let me display a dialog, process 
the accept/cancel (only for installs), process as normal if the option isn't 
used etc but it requires the addition of another key in the application pkginfo 
for the text to display. I'm currently stuck on including this key in the 
InstallInfo.plist. Maybe I need to step back but I can't find the best place 
for this to happen.

Original issue reported on code.google.com by bart.rea...@gmail.com on 16 Jul 2014 at 2:20

GoogleCodeExporter commented 9 years ago
I like this idea, but I want to hold off on any additional feature additions 
until Munki 2.0 has been declared "official". We can then iterate quickly and 
add additional features we've put on hold for a Munki 2.1 release.

Original comment by gregnea...@mac.com on 16 Jul 2014 at 4:38

GoogleCodeExporter commented 9 years ago
never mind. found it.

Probably needs some cleaning up but here's what I have
https://code.google.com/r/bartreardon-munki/source/detail?r=410b0dfc50e92128aaa4
c9bee96b6cb06f1d7be8&name=Munki2

It adds a new <key><string> pair "aup_text"  (needs a better name but that's 
what I started with. probably user_acceptance or something more generic)
If present then clicking install will display the text with Accept Cancel 
buttons (Cancel being the default)
If not present then install proceeds as usual.

Original comment by bart.rea...@gmail.com on 16 Jul 2014 at 4:42

GoogleCodeExporter commented 9 years ago
oops. didn't see your reply before posting.

happy for it to hold off until post "official" as it needs fine tuning.

Original comment by bart.rea...@gmail.com on 16 Jul 2014 at 4:43

GoogleCodeExporter commented 9 years ago
made some changes and a bit of a cleanup.

the main change is the re-naming of the extra key to install_conditions

https://code.google.com/r/bartreardon-munki/source/detail?r=bdad089c16c8fb2b0680
b5c500b4d183ce7b1974&name=Munki2

Original comment by bart.rea...@gmail.com on 18 Jul 2014 at 12:58