Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

dotNetInstaller - Setup Bootstrapper for .NET Application

, 4 Jan 2004
With this tool the developer can define the application prerequisites and install the correct version of these components in the correct order based on the user operating system type and language, allow the user to download these components from the web or install these components directly.
dotnetinstaller_source.zip
dotNetInstaller_source
dotNetInstaller
dotNetInstaller.vcproj.vspscc
dotNetInstaller.vssscc
mssccprj.scc
res
banner.bmp
dotNetInstaller.ico
dotNetInstaller.manifest
Thumbs.db
vssver.scc
Tools
vssver.scc
vssver.scc
InstallerEditor
App.ico
banner.bmp
bin
Release
InstallerEditor.exe
SourceLibrary.dll
vssver.scc
InstallerEditor.csproj.user
InstallerEditor.csproj.vspscc
InstallerEditor.suo
InstallerEditor.vssscc
mssccprj.scc
References
SourceLibrary.dll
vssver.scc
Thumbs.db
vssver.scc
Sample
banner.bmp
dotNetInstaller.exe
SupportFiles
DataAccess
Jet
Jet40Sp7
Win2000_English
Win2000_Italiano
Win9x_NT
WinME
WinXp_English
WinXp_Italiano
MDAC2.7Sp1Refresh
Win_98_ME_NT_2000
dotNet
v1.1
English
Italiano
InternetExplorer
IE60SP1_English
IE60SP1_Italiano
ServicePack
2000_SP4_English
2000_SP4_Italiano
NT4_SP6a_English
NT4_SP6a_Italiano
Win98_Y2k_Update_English
Win98_Y2k_Update_Italiano
using System;

namespace InstallerEditor
{
	/// <summary>
	/// A collection of elements of type Download
	/// </summary>
	public class DownloadCollection: System.Collections.CollectionBase
	{
		/// <summary>
		/// Initializes a new empty instance of the DownloadCollection class.
		/// </summary>
		public DownloadCollection()
		{
			// empty
		}

		/// <summary>
		/// Initializes a new instance of the DownloadCollection class, containing elements
		/// copied from an array.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the new DownloadCollection.
		/// </param>
		public DownloadCollection(Download[] items)
		{
			this.AddRange(items);
		}

		/// <summary>
		/// Initializes a new instance of the DownloadCollection class, containing elements
		/// copied from another instance of DownloadCollection
		/// </summary>
		/// <param name="items">
		/// The DownloadCollection whose elements are to be added to the new DownloadCollection.
		/// </param>
		public DownloadCollection(DownloadCollection items)
		{
			this.AddRange(items);
		}

		/// <summary>
		/// Adds the elements of an array to the end of this DownloadCollection.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the end of this DownloadCollection.
		/// </param>
		public virtual void AddRange(Download[] items)
		{
			foreach (Download item in items)
			{
				this.List.Add(item);
			}
		}

		/// <summary>
		/// Adds the elements of another DownloadCollection to the end of this DownloadCollection.
		/// </summary>
		/// <param name="items">
		/// The DownloadCollection whose elements are to be added to the end of this DownloadCollection.
		/// </param>
		public virtual void AddRange(DownloadCollection items)
		{
			foreach (Download item in items)
			{
				this.List.Add(item);
			}
		}

		/// <summary>
		/// Adds an instance of type Download to the end of this DownloadCollection.
		/// </summary>
		/// <param name="value">
		/// The Download to be added to the end of this DownloadCollection.
		/// </param>
		public virtual void Add(Download value)
		{
			this.List.Add(value);
		}

		/// <summary>
		/// Determines whether a specfic Download value is in this DownloadCollection.
		/// </summary>
		/// <param name="value">
		/// The Download value to locate in this DownloadCollection.
		/// </param>
		/// <returns>
		/// true if value is found in this DownloadCollection;
		/// false otherwise.
		/// </returns>
		public virtual bool Contains(Download value)
		{
			return this.List.Contains(value);
		}

		/// <summary>
		/// Return the zero-based index of the first occurrence of a specific value
		/// in this DownloadCollection
		/// </summary>
		/// <param name="value">
		/// The Download value to locate in the DownloadCollection.
		/// </param>
		/// <returns>
		/// The zero-based index of the first occurrence of the _ELEMENT value if found;
		/// -1 otherwise.
		/// </returns>
		public virtual int IndexOf(Download value)
		{
			return this.List.IndexOf(value);
		}

		/// <summary>
		/// Inserts an element into the DownloadCollection at the specified index
		/// </summary>
		/// <param name="index">
		/// The index at which the Download is to be inserted.
		/// </param>
		/// <param name="value">
		/// The Download to insert.
		/// </param>
		public virtual void Insert(int index, Download value)
		{
			this.List.Insert(index, value);
		}

		/// <summary>
		/// Gets or sets the Download at the given index in this DownloadCollection.
		/// </summary>
		public virtual Download this[int index]
		{
			get
			{
				return (Download) this.List[index];
			}
			set
			{
				this.List[index] = value;
			}
		}

		/// <summary>
		/// Removes the first occurrence of a specific Download from this DownloadCollection.
		/// </summary>
		/// <param name="value">
		/// The Download value to remove from this DownloadCollection.
		/// </param>
		public virtual void Remove(Download value)
		{
			this.List.Remove(value);
		}

		/// <summary>
		/// Type-specific enumeration class, used by DownloadCollection.GetEnumerator.
		/// </summary>
		public class Enumerator: System.Collections.IEnumerator
		{
			private System.Collections.IEnumerator wrapped;

			public Enumerator(DownloadCollection collection)
			{
				this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
			}

			public Download Current
			{
				get
				{
					return (Download) (this.wrapped.Current);
				}
			}

			object System.Collections.IEnumerator.Current
			{
				get
				{
					return (Download) (this.wrapped.Current);
				}
			}

			public bool MoveNext()
			{
				return this.wrapped.MoveNext();
			}

			public void Reset()
			{
				this.wrapped.Reset();
			}
		}

		/// <summary>
		/// Returns an enumerator that can iterate through the elements of this DownloadCollection.
		/// </summary>
		/// <returns>
		/// An object that implements System.Collections.IEnumerator.
		/// </returns>        
		public new virtual DownloadCollection.Enumerator GetEnumerator()
		{
			return new DownloadCollection.Enumerator(this);
		}
	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Davide Icardi
Software Developer
Italy Italy
No Biography provided

| Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 5 Jan 2004
Article Copyright 2003 by Davide Icardi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid