title: installshield- cannot delete registry key during uninstall
body: <p>I have installer with chained msi.</p>
  
  <p>If i do uninstall, it doesn't remove the registry key of the chaind msi.
  i tried to solve it with many ways but i didn't succeed.</p>
  
  <p>I'm writing my ways hoping someone will find where it went wrong:</p>
  
  <ol>
  <li><p>I wrote a batch file:</p>
  
  <p>REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{product code} /f</p></li>
  </ol>
  
  <p>This batch file remove the registry key when i run it stand alone, but if i put it via the installshield as a custom action it failed.</p>
  
  <ol start="2">
  <li><p>By custom action:</p>
  
  <p>LaunchAppAndWait("C:\Windows\System32\cmd.exe ", "/C REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{product code} /f", WAIT);</p></li>
  <li><p>By custom action that tun the batch file </p>
  
  <p>LaunchAppAndWait("C:\Windows\System32\cmd.exe ", "/C \"C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\remove registryKey.bat\"", WAIT);</p></li>
  <li><p>MsiExec.exe  /x{GUID} - failed because it cannot run two installation in parallel</p></li>
  </ol>
  
  <p>I really need your help!!!
  I have been trying to solve it a long time ago without success.</p>
  
  <p>Thanks in advance!!! </p>