Alexander,

Within .NET, the Windows Installer can be foreseen to run basically '.NET installation
procedures'. This maps directly onto the System.Configuration.Install.Installer and
its descendents.
For your case, you'll have to use System.ServiceProcess.ServiceInstaller and
System.ServiceProcess.ServiceInstaller as such being 'encapsulated' into a
class handling installation for your context (MyProjectInstaller : Installer).


I only know of the way VS.NET 'implements' the link towards the Installer-based
classes but I suspect that within MSI the necessary 'infrastructure' is foreseen.
Within VS.NET deployment projects (view upon MSI), there is a possibility to
define 'Custom Actions' like Install, Commit, Rollback, Uninstall. Each action can
link to one (or more) assemblies in which Installer(descendents) are located
(in your case the MyProjectInstaller).
These map to the Install, Commit, Rollback, Uninstall events of the Installer class.


MSI will perform a 'transactional installation' going to the different phazes in
and 'all or nothing' behavior.
For examples, see the .NET framework documentation. It is straight forward
and it works like a gem !


Hope this helps a little bit ;-)

Greetings,
Frank


From: "Eckert, Alexander" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [Nant-users] MSI Task - Installing Windows Service
Date: Wed, 21 Jan 2004 10:59:18 +0100

Hi,

another question concerning the msi task. The building of an installer
works fine so far. But how can I install/register a windows service with
the msi task???
Any help would be nice....

Thx in advance.
Greetings

Alex



_________________________________________________________________





------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to