I have the following problem, I wish to install an application of mine as a service on the system. My class inherits from System.Configuration.Install.Installer. The problem starts when in the constructor of that class I try to get the parameters of Context property, then I get the following exception:
无法创建安装器类型的实例( 我从安装器中继承的类名 ) 。
When I printed out the Context property, I saw it was null (and it throws the exception when trying to reach the context property) in the constructor.
Same code works fine on 2003 and installation is finished successfuly, but here it fails.