title: Executing a script file from a Windows Installer Custom Action
body: <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>