I'm very new in C# world though I'm trying to modify an installer using custom action. What I'm trying to do is to run a batch script after installation finishes. I'm using the following Installer class:

```
namespace PostInstall
{
    [RunInstaller(true)]
    public partial class Installer1 : Installer
    {
        public Installer1()
        {
            InitializeComponent();

            System.Diagnostics.Process.Start("PostInstall.bat");
        }
    }
}

```

A project named PostInstall contains a \*.cs file with the code above. The project is created following [this link](http://msdn.microsoft.com/en-us/library/d9k65z2d%28v=VS.90%29.aspx#Y444)'s section "To create the custom action". In the setup project, I've added the primary output of PostInstall project in Install & Commit node as described in the link.

Yet at the end of the installation the following error is received:

> 
> Error 1001. Unable to create an instance PostInstall.Installer1
>  installer type -> Exception has been thrown by the target of an
>  invocation. -> The system can't find the file specified.
> 
> 
> 

I verified that `PostInstall.bat` exists in the installation directory. Why the error is occurring and how to resolve it?