Groups | Blog | Home
all groups > dotnet setup > january 2006 >

dotnet setup : Clling InstallUtil within a custom action


segal.aviad NO[at]SPAM gmail.com
1/30/2006 7:51:32 AM
Hi all,

I'm trying to create an MSI that copies project output, and calls
installutil in order to install a service.

When I Uninstall the Product, the service file is deleted before the
custom action "uninstall" is reached. In the custom action I want to
uninstall the service, but the exe file does not exist.

How can I solve this problem? I don't want to copy the exe file within
the custom action. Can this be avoided?

Thanks.
A
Phil Wilson
1/30/2006 11:32:56 AM
You don't really need InstallUtil. The installer classes in your Service can
be called by the setup project. There's some info here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp

http://msdn2.microsoft.com/en-us/library/7b55cw20.aspx

In general you just add Install, Commit, Rollback, Uninstall custom actions
that are in your Service assembly, and the setup project will call them.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

AddThis Social Bookmark Button