title: How to debug failure of a custom action in an MSI/Setup project
body: <p>For a custom action, I'm setting to Name to XmlPreprocess.exe (a CodePlex utility) </p>
  
  <p>and arguments to: /x:"[SETTINGSFILE]" /i:"[TARGETDIR]web.config" /e:[ENVIRONMENTBUTTON] [CUSTOMSETTINGS] >[TARGETDIR]XmlPreProcess.log</p>
  
  <p>SETTINGSFILE is supposed to be coming from a custom form page I added, and ENVIRONMENTBUTTON is the value of one of my radio buttons. </p>
  
  <p>Is there any way to get the redirect to work?  It's not creating the .log file. 
  Is there any other way to see the results of the custom action?  How can I even confirm if it ran? What if I would like to see what parms were sent to it? </p>
  
  <p>Update 3: - For more scenarios of what I have tried, see here:
  <a href="http://xmlpreprocess.codeplex.com/Thread/View.aspx?ThreadId=79454" rel="nofollow noreferrer">http://xmlpreprocess.codeplex.com/Thread/View.aspx?ThreadId=79454</a></p>
  
  <p>Thanks,</p>
  
  <p>Neal </p>
  
  <p>Update: 
  I just wrote a quickie VBScript to verify my parms. </p>
  
  <pre><code>dim fso, oFile 
  set fso = Createobject("Scripting.FileSystemObject") 
  set oFile = fso.CreateTextFile("VBScriptOut.txt") 
  
  if WScript.Arguments.Count &lt; 2 then 
     oFile.Writeline("Number of arguments was only = " &amp; WScript.Arguments.Count)
  else 
     oFile.WriteLine("SETTINGSFILE=" &amp; WScript.Arguments.Item(0))   
     oFile.WriteLine("ENVIRONMENTBUTTON=" &amp; WScript.Arguments.Item(1))
  end if 
  
  oFile.close
  </code></pre>
  
  <p>No VBScriptout.txt was created, so I don't think it even ran (so my guess is the XmlPreprocess isn't even running either). </p>
  
  <p>I included the InstalLVerification.vbs file as a Custom Action under "Install". 
  I set the condition= True in the properties window. 
  I set CustomActionData to: "[SETTINGSFILE]" [ENVIRONMENTBUTTON]</p>
  
  <p>Update 2: 
  I realized now Condition should not be "True".  I either blank it out or set it to "Not Installed". </p>
  
  <p>I'm getting an unexplained error on XmlPreprocess, and I cannot get the VBScript to run.  I tried running it also with CScript64.exe. </p>