ViewCvs Setup on Windows with IIS 4-5-6 or Apache
Version 1.0_2005-05-18

Author: Bo Berglund
Date: 2005-05-23
Updated broken links: 2007-03-22

Background
I have found that getting ViewCvs up and running on Windows can be quite a challenge. The reason for this is located in several different areas:

To still get ViewCvs to work took some messing with the Python script files to edit in fixes for the problems. These fixes are now in SourceForge CVS, which is what the version included in this setup is based on.
One notable item is that this version of ViewCvs will not use the Gnu RCS tools and so a big problem with comptibility is gone. It will use a direct call to cvs.exe instead.
However it is still not self-evident how to get everything working so therefore I have created a Windows setup project using InnoSetup (see link below). With this setup you have just to use the setup GUI and make some setting entries after which the installation is fully automatic. The setup installs ViewCvs plus the add-ons CvsGraph and Enscript.
Please note that I am not the author of the ViewCvs fixes or any other program, I am just creating this setup program that collects the working files into a usable setup. The actual sources for ViewCvs that this setup uses are available from Sourceforge via CVS. The files used in the setup can also be retrieved via CVS from my server (contact me for a login) until I have had time to find out how to put them on SourceForge.

ViewCvs moved its project!
ViewCvs has been renamed to ViewVC and moved from Sourceforge! I have tried to update a few of my links so they now point to the correct places. But I have not tried to follow all the latest development because it seems primarily geared towards SubVersion, which I don't use.
For CVSNT the version of ViewCvs published here is fully operational and I do not intend to investigate further development of ViewVC.

Table of contents

What is needed to run ViewCvs
How to get ViewCvs and other software
Bugs and issues
DOWNLOAD my ViewCvs installer for Windows
How to install on NT4 with IIS 4

ViewCvs related links:
ViewCV home page (viewvc.org)
ViewCV project page (viewvc.tigris.org)
CvsGraph
Enscript

CVS links:
CVSNT homepage
CVSMailer for CVSNT
CVSNT 2.5.03 installation tips
CVSNT 2.5.03 Auditing Configuration Tutorial
The free part of Karl Fogel's CVS book in HTML format

TOOLS:
InnoSetup 4 Installer homepage(Now with Pascal scripting)

WEBSERVER alternative:
Apache webserver homepage

What is needed to run ViewCvs on Windows?

In order to run ViewCvs you must have a working CVSNT server on a PC on your network. It should be running on Windows 2000 (Server or Workstation) or higher. You also must have a webserver installed on this PC. I use XP-Pro and IIS 5.
It is also possible to use Apache for Windows, and this is now also covered by this setup.
If your environment does not fill these requirements then the setup will not start.

Summary of the requirements:

Installer tasks

The ViewCvs installer performs these tasks to set up ViewCvs on your PC:

How to get ViewCvs and other software

You need the following software to successfully install ViewCvs:

The external software components can be downloaded here:
CVSNT
Python
ActiveState distribution, includes the win32 extensions:

ActiveState Python description
ActiveState Python download page
ActiveState Python 2.3.2 build 232 setup file (msi)
ActiveState Python 2.4.1 build 245 setup file (msi)
or get it from Python.org, but then you need to download two setups to get the win32 extensions
Python 2.2.3 from Python.org
Python 2.3.2 from Python.org
Python 2.4.1 from Python.org
Win32 extensions for Python

Known bugs and issues

There are a few issues that are outstanding and not/partially solved. I list them here for your information:

Revision history
p - Installer now contains the updated CVSGraph 1.5.2 needed for newer CVSNT installations (2.5.03)
o - Installer bug fixed that failed to properly deposit gzip.exe and cvs.exe
n - Installer now includes ViewCvs sources from CVS HEAD as of 2005-05-18
m - Installer now tries harder to find the win32 extensions to Python 2.4
- Now includes bugfix for broken CVSGraph links when not browsing default repository.
l Bugfix in installer, now detects Python 2.4 in addition to 2.1-2.3
k Latest sources from ViewCvs CVS HEAD as of 2004-12-03 used
New version 1.5.1 of CVSGraph included, displays merge arrows using CVSNT merge points
Now includes ViewCvs source files from Dec 03, 2004
Displays the version number 2004-12-03 on the webpages to indicate the age of ViewCvs
j CVSNT RepositoryPrefix changes from CVSNT 2.0.44 now handled.
New version of CVSGraph included to cope with recent CVSNT changes
Now includes ViewCvs source files from August 14, 2004 with SubVersion support
File needed for the Download Tarball function (gzip.exe) is now included
i New: includes enscript support for csharp and vba (thanks: John Cole)
Now also includes the ViewCvs CVS HEAD files from March 28, 2004
h Added extra path delimiter handling in paths (thanks: Glen Starrett)
Now also includes the ViewCvs CVS HEAD files from March 28, 2004
g Modified path delimiter handling for rcspath (thanks: Daniel Kirschsieper)
f Added handling of Microsoft "Web Server Lockdown" that made enscript stop working
Changed install directory for the GnuWin32 tools to be parallel to ViewCvs (<ViewCvs>\..\Gnuwin32)
e Added IIS 6 special "Web Service Extension" settings
d Added support for Apache webserver

Download the ViewCvs installer

This is the ViewCvs 1.0_2005-05-18B installer made with InnoSetup 4.2.7.
Download the ViewCvs ver 1.0_2005-05-18B installer
Download the ViewCvs Installer sourcefiles rev 2005-05-18
The sourcefiles archive contain everything needed including the viewcvs sources. Both the CvsGraph, Gnuwin32 and Enscript binaries are included.

Unique visit counter re-started 2004-05-22 after URL change:

Back to contents

How to adjust the installation on NT4 with IIS 4

The installer works seamlessly on IIS 5 including the creation of all the necessary virtual directory and application mappings needed. On IIS 4, however, it might not succeeded fully in the creation of the application mapping in script. If this happens to you there might a bit of afterwork required. I will decribe this below:
1. After the installer has finished
and the PC has rebooted (needed to register the paths when running the installer for the first time), you need to open the IIS manager. Normally this is found at:
Start/Programs/Windows NT4.0 Option Pack/Microsoft Personal Web Server/Internet Service Manager


2. Application properties
Now you must open the properties page of ViewCvs by rightclicking and selecting "Properties"




3. Application Configuration
When you click the "Configuration" button the Applications mappings tab opens. Select the CGI line in the list and click Edit.


4. Application Mapping
Now the mapping configuration is shown. Make sure that it looks like this. Note especially the quotes in the parameter ("%s"). Click OK to save this setting.


5. Finished!