I have created a widows application with setup project. I compiled and build.Everything looks fine.
For changing the configuration file during installation am trying to add a new Installer file. when i add it by default i get the below code
Collapse | Copy Code
[RunInstaller(true)]
public partial class Installer : Installer
{
public Installer()
{
InitializeComponent();
}
}
When i compile this Am gettin
Circular base class dependency involving ‘windows_setup.Installer’ and ‘windows_setup.Installer’
windows setup is the name space i used for the application. Then i found that i need to create the new classs which inbherits Installer.So i changed my class name to
public partial class MyInstaller : Installer
Now am Getting
Inconsistent accessibility: base class ‘windows_setup.Installer’ is less accessible than class ‘windows_setup.MyInstaller’
Suggest your ideas.
Thanks
Well, you can’t have a public class inheriting from an internal class for example. Try to set everything as internal if not required outside, or public otherwise.