В классе инсталлере проекта нужно добавить:

public partial class ProjectInstaller : System.Configuration.Install.Installer
{
    public ProjectInstaller()
    {
        this.InitializeComponent();
    }
 
    protected override void OnBeforeInstall(System.Collections.IDictionary savedState)
    {
        this.Context.Parameters["assemblypath"] = this.AppendPathParameter(Context.Parameters["assemblypath"], "-service");
        base.OnBeforeInstall(savedState);
    }
 
    protected override void OnBeforeUninstall(System.Collections.IDictionary savedState)
    {
        this.Context.Parameters["assemblypath"] = this.AppendPathParameter(Context.Parameters["assemblypath"], "-service");
        base.OnBeforeUninstall(savedState);
    }
 
    protected virtual string AppendPathParameter(string path, string parameter)
    {
        if (path.Length > 0 && path[0] != '"')
        {
            path = string.Format("\"{0}\"", path);
        }
        path += string.Format(" {0}", parameter);
        return path;
    }
}

http://stackoverflow.com/questions/10520048/calculate-md5-checksum-for-a-file