<p>I am designing a windows service and now deploying it.</p>

<p>I have the code:</p>

<p>ServiceInstaller serviceInstaller1 = new ServiceInstaller();</p>

<p>This instantiates the object (obviously, but throws the following compile-time error:</p>

<p>Error   1   The type 'System.Configuration.Install.ComponentInstaller' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.    C:\Users\firstname.lastnameDocuments\Visual Studio 20</p>

<p>How do I fix this? I'm thinking I need an app config file in my Windows Service?</p>

System.Configuration.Install should be in the GAC. Is it not there? Does the target machine only have .NET 1.0 or 1.1? Or does the app.config (which you say you might not have present) stipulate one of those earlier .NET Framework versions should be used?
Ah, it is on the dev machine. Then you should go with Marc's answer and just add a reference to the System.Configuration.Install assembly to your project.