InstallUtil throw error message
<p>Trying to run on W7 64-bits, using .Net 3.5 on Visual C# 2008 Express, I tried running installutil.exe in Framework and Framework64 folder, both throw the same error. 3.5 folder doesn't have installutil.exe and 4.0 in both folders doesn't work too.</p>

<p>In IDE, there is no Release build but Publish, are they the same?</p>

<p>I follow the tutorial from this article:
<a href="http://www.switchonthecode.com/tutorials/creating-a-simple-windows-service-in-csharp" rel="nofollow">http://www.switchonthecode.com/tutorials/creating-a-simple-windows-service-in-csharp</a></p>

<p>What could be wrong?</p>

<pre><code>D:\install&gt;C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe setup.e
xe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.4927
Copyright (c) Microsoft Corporation.  All rights reserved.

Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///D:\inst
all\setup.exe' or one of its dependencies. The module was expected to contain an
 assembly manifest..
</code></pre>
