<p>I need to execute a batch file as part of the un-install process in a Windows installer project (standard OOTB VS 2008 installer project-vdproj).  One cannot execute a bat file directly from the Custom Actions in the installer project, so I wrote a quick vbs script to call the required bat file.<br>
vbs code: </p>

<pre><code>Set WshShell = WScript.CreateObject( "WScript.Shell" )
command = "uninstall-windows-serivce.bat"
msgbox command
WshShell.Run ("cmd /C " &amp; """" &amp; command &amp; """")
Set WshShell = Nothing
</code></pre>

<p>When this script is run independent of the uninstall, it works perfectly.  However, when run as part of the uninstall, it does not execute the bat file (but the message box is shown, so I know the vbs file is called).  No errors reported (at least that I can tell).  Why doesn't this script work as part of the "Uninstall Custom Action"</p>

In your installer class, are you overriding the Uninstall method:
```
```
Public Overrides Sub Uninstall(ByVal savedState As System.Collections.IDictionary)
            MyBase.Uninstall(savedState)
           'Shell to batch file here
    End Sub
```
```
And secondly, have you qualified the full path to the batch file?