Uli's Web Site
[ Zathras.de - Uli's Web Site ]
Other Sites: Stories
Pix
Abi 2000
Stargate: Resurgence
Lost? Site Map!
 
 
     home | blog | moose | programming | articles >> blog

 Blog Topics
 
 Archive
 

15 Most Recent [RSS]

 Less work through Xcode and shell scripts
2011-12-16 @600
 
 iTunesCantComplain released
2011-10-28 @954
 
 Dennis Ritchie deceased
2011-10-13 @359
 
 Thank you, Steve.
2011-10-06 @374
 
 Cocoa Text System everywhere...
2011-03-27 @788
 
 Blog migration
2011-01-29 @520
 
 All you need to know about the Mac keyboard
2010-08-09 @488
 
 Review: Sherlock
2010-07-31 @978
 
 Playing with Objective C on Debian
2010-05-08 @456
 
 Fruit vs. Obst
2010-05-08 @439
 
 Mixed-language ambiguity
2010-04-15 @994
 
 Uli's 12:07 AM Law
2010-04-12 @881
 
 Uli's 1:24 AM Law
2010-04-12 @874
 
 Uli's 6:28 AM Law
2010-04-12 @869
 
 Uli's 3:57 PM Law
2010-04-12 @867
 

More...

The best installer is one you don't use

Do you like installers? Do you like using them? Most people don't. Installers are mainly conceived as a necessary evil between us and the application programs we want to use. True, compared to having to manually copy dozens of files and setting up .ini files or .plists, they're actually more evil than Evil, but still, they don't directly help us get work done, and thus they're still in the annoyance category, even if only by a narrow margin.

Consequently, I think the best way to write a good installer is to not use one at all. Where that doesn't work, write one that minimizes the time you spend using it.

The topic of installer UI just came up on the GNUstep mailing list, and here are my thoughts about this, compared to the two obvious candidates as inspiration for a GNUstep installer: The traditional NeXT installer, and Apple's current Installer.app.

NeXT's installer falls flat on the face regarding minimizing interaction: It has so many settings and windows and different pages that it looks like someone had way too much fun playing with packages.

Apple's installer doesn't do that, by dropping a lot of functionality. Which is one way to solve it, I guess, but not really ideal. In addition, its rigid structure forces users to go through three or four pages for most applications, when leading them right to the choose disk page and then having them click Install would have sufficed for half of them.

So, here's my first stab at a better interaction model:

A single-page installer mock-up screenshot

Use a streamlined version of Apple's "wizard"-style installer. Make sure that you have a list of pages on the left so the user can see what they've already done and what still lies ahead of them (not necessarily as a list box, just as a list of words. It shouldn't have enough pages to merit a scroller. If it does, you're doing too many settings at install time that should rather be changed later while it's running).

Improve upon Apple by having as few required pages as possible, and letting advanced users directly click one of the items in the list to go to that page (well, except "finished", of course). Also, have a menu item to turn on a geek mode. That latter mode would show some additional labels for text boxes that e.g. tell users that the setting they're entering corresponds to the FROBNITZ_THE_XYZZY-option or whatever, and maybe inserts an additional page into the wizard that lists all files that are installed, how they are, and what they'll do. This should be an option that is global for the entire app, so admins can just turn it on, but off by default so as to not confuse people who prefer other uses for their time.

A multi-page installer mock-up screenshot

This additional page would probably not merely list all files in the package, but also allow doing things like turn on/off certain entries to only install certain files or whatever geeks love to do. ;-)

Uninstalling would be comparatively hidden. Most users don't need to uninstall software. The case in which they do is usually when it's buggy or the installer didn't work. So, when you launch an installer and its files are already (partially?) installed, it would ask at startup what to do, uninstall or install on another disk. A menu item sounds sensible, too, so people who know better than the installer that there are still some files to be uninstalled can force this behavior.

Another option would be to get un-installation integrated into the file system explorer (Finder, GWorkspace, whatever): Certain user-visible files like applications, plugins and frameworks would contain an additional Info.plist key that contains a package identifier, which connects it to a particular receipt for an installed package. When the user tries to delete one of these files, GWorkspace would tell the user that this file is part of a package and should be uninstalled with its consorts, giving the user the "expert" option of only deleting this file, or alternatively offering to run the uninstaller right away, or abort.

One could even mark certain files as auto-unpack. Of course this has to be designed carefully not to be an invitation to virus writers, but one could have a shortcut to installation: When a user drags a package onto a hard disk, they're told that this is a package that they can just copy, or activate by installing it, with buttons to do the latter. In this case, the package would be installed with sensible defaults and no additional user interaction required.

However, this latter option would need to be done very carefully, or users will accidentally install stuff on a drive when they really only wanted to back up the installer package, thinking it'd somehow be broken if they didn't install it. Maybe a good compromise would be to only have it work this way when a package is dragged on a system folder (like one of the "Library" folders).

This would help users spend much less time in installers, and would ease software management for users who just want to get their work done, while people who need to have full control over such things or who want to use arcane features or work in security-critical environments would still have the power to mess with their system all they want.

Comments, thoughts, suggestions?

Update: Added two little pictures I did back when we did that discussion to illustrate the whole idea. Opened for comments.

Reader Comments: (RSS Feed)
Cees writes:
ROX (http://rox.sourceforge.net) uses the Zero Install system - http://0install.net/
installer writes:
does it appers in Add/Remove applet in Control Panel?
Or E-Mail Uli privately.

 
Created: 2005-03-10 @760 Last change: 2024-12-26 @231 | Home | Admin | Edit
© Copyright 2003-2024 by M. Uli Kusterer, all rights reserved.