Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Tools

Installation Software: From the Inside Out



With us today is Ron van der Wal of Tarma Software Research, a software development company that specializes in installation software.

DDJ: Ron, what's the hard part of building installation tools?

RVDW: Creating the development environment. That's where 80-90 percent of the effort goes. You might think that keeping up with new Windows features and versions was the tricky bit, but it's not.

The GUI part of the development environment is the hardest: it accounts for most lines of code and it makes it harder to add new features, because not only must the new functionality be added to the installer executable (which is fine), but it also trickles back to the development environment: additional UI fields or options, additional code for data exchange and validation, additional code for preflight checks, additional space in (and I/O with) the project file, and more end-user documentation.

So the hard part of building installation tools has nothing to do with installation tools, but rather is the same thing as always: the incidental complexity (the GUI development environment) that overwhelms the essential complexity (the actual installer program).

DDJ: What about the flip side -- uninstall programs?

RVDW: The hardest part here is to remove what is no longer needed, and no more. For application-private files this is easy, because you just delete them. The trouble starts with files that are used by several applications or even Windows itself.

Windows uses several forms of reference counting, from SharedDlls to side-by-side and .Net assemblies, but none of them are fully reliable. We therefore use additional rules to try and avoid damaging the system.

The final twist is removing the installer itself and the folder it resides in: that requires a second process that runs from a different location, because you cannot remove files or folders that are still in use. It's a kind of inverse bootstrapping, if you know what I mean.

DDJ: I have to ask this because you can't have a conversation without it these days -- does cloud computing change anything when it comes to installing software?

RVDW: Well, it should do away with the need for installation programs, and good riddance as far as I'm concerned. I firmly believe that software installation on Windows systems is much, much too complex and too fraught with problems, despite all the best efforts to make it easier.

DDJ: About 10 years ago, you wrote an article for Dr. Dobb's on the subject of testing tools. How did you get from testing to installation software?

RVDW: Confession: I never really was a tester per se; it was just something that arose from my interest in well-engineered tools. First there was programming in C and C++, then the need to write better software with those languages.

In that context I evaluated a variety of testing tools (and C/C++ compilers in a separate article around the same time), primarily to see how they could help to write better software: fewer bugs, better optimized, and generally more reliable.

From there I went on to write bespoke software for a variety of customers and purposes, and needed an installer that was more compact and more efficient than the ones that were available at the time.

That led to my first installation tool, which was very simple but also very small: 50 KB or so instead of the then (ca. 1999) more customary 700 KB and more. It allowed me to fit most programs on a single floppy disk instead of several -- another case where the incidental overhead (the installer) used to overwhelm the essential (the product itself).

That first tool was followed by commercial versions that grew over time, but even the current version is less than 200 KB and has the same or better functionality and flexibility as for example the MSI runtime.

As always, the emphasis is on small, efficient, and well-engineered software, and to achieve that we even use our own runtime libraries, written from the ground up for compactness and speed. They completely replace the usual Microsoft C/C++ runtime libraries and frameworks like MFC, and used "safe" coding techniques long before those appeared in recent versions of the Microsoft libraries.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.