title: Custom Action Fails
body: <p>I have a custom action to run a batch file after installation. It works fine in windows 7 but doesnt in XP. </p>
  
  <p>Here is the code I have used to run the batch file</p>
  
  <pre><code>Imports System.ComponentModel
  Imports System.Configuration.Install
  Imports System.IO
  Imports System.Environment
  &lt;Security.Permissions.SecurityPermission(Security.Permissions.SecurityAction.Demand)&gt;
  Public Class StartBatch
      Public Function appData() As String
          appData = GetFolderPath(SpecialFolder.ApplicationData)
      End Function
  &lt;Security.Permissions.SecurityPermission(Security.Permissions.SecurityAction.Demand)&gt; _
      Public Overrides Sub Commit(ByVal savedState As  _
    System.Collections.IDictionary)
  
          MyBase.Commit(savedState)
          System.Diagnostics.Process.Start(appData() &amp; "\Wilson18\IPChanger\IPFinder.bat")
      End Sub
  
  End Class
  </code></pre>
  
  <p>How would I either be able to get this to work on windows XP or, if the action fails then it doesnt interup the installer. </p>
  
  <p>Thanks</p>