Installer class apparently not called
I am following this tutorial for setting up a web setup project. http://msdn.microsoft.com/en-us/library/aa289522(VS.71).aspx
However, I am working with a web application that I already have in visual studio. So part of their solution is to create an installer class in my own web project. When I select "add new item" I don't really see the "Installer Class" option in the dialog box.
So, I added my own class, specifying "System.Configuration.Install" and extending the .net installer class. My problem is that in a web setup project, my own installer, which according to the instructions in the link above should actually be called, is not being called.
Any ideas on what I am doing wrong?
source to share
The installer must have an attribute [RunInstaller(true)]
, and the .NET installer must run as part of the installation process, either through a custom installation step in the vdproj installer (see Custom Actions tab) or using installutil
.
One quick and dirty sanity check is to add a MessageBox to your installer to see if it works (getting the protocol working right is worth it to understand, or you're asking a pain world as well)
source to share