Support
09-24-2002, 10:49 AM
<HTML><HEAD><TITLE>HOWTO: Remove Files that were Installed by a Patch or Alternate Source</TITLE></HEAD><BODY><h3>HOWTO: Remove Files that were Installed by a Patch or Alternate Source</h3><b>Document ID: IR02006</b><hr>The information in this article applies to:<ul><li>Setup Factory 6.0</li></ul><hr><h3>SUMMARY</h3><p>This article describes how to removes files during an uninstall that were installed via a patch or an alternate source.</p><h3>DISCUSSION</h3><p>Setup Factory 6.0 gets most of its uninstall information from the irunin.ini file whose location is set on the <b>Design | Uninstall</b> Settings tab. This file contains a list of all files that were installed by the installation. The uninstaller then uses this list as its list of files to remove. If new files were added by a patch, or any other means, they would not be in this list and would therefore not be removed by the uninstaller.<br><br>Since it is undesirable to leave remnants of your program, Setup Factory 6.0 has the ability to add additional files to the "uninstall list". In order to do this the irunin.ini file must be edited in the following manner:<br><br>In the irunin.ini file make a section called "Delete Files". In that section make entries in the format:<PRE><code>&lt;&lt;Filename&gt;&gt;=delete</code></PRE>For example:<br><br><PRE><code>[Delete Files]<br>C:\My App Dir\MyFile.exe=delete<br>X:\Users\Darryl\document.doc=delete</code></PRE>If you are installing extra files using Visual Patch 1.0 you could add the new files to the irunin.ini file using an <b>INI File Command</b> Here is an example of what that command might look like:<br><br><PRE><code><b>Action:</b> Add<br><b>Filename:</b> %AppDir%\Uninstall\irunin.ini<br><b>Section:</b> Delete Files<br><b>Key:</b> C:\My App Dir\MyFile.exe<br><b>Value:</b> delete<br><b>If value already exists:</b> Overwrite</code></PRE>The same could be accomplished using an <b>INIFile.SetValue</b> action in AutoPlay Menu Studio 4.0 or a <b>Modify INI file</b> action in Setup Factory 6.0.<br><br><b>Tip:</b> In order to make this process easier write the path to your irunin.ini file to the registry during your initial installation. That way your patch does not have to guess at that path.<br> </p><h3>MORE INFORMATION</h3><p>See the following topics in the Setup Factory 6.0 help file:<br><br><li><b>Command Reference | Reference | How the Uninstall works</b></li><li><b>Command Reference | Design Environment | Dialogs | Uninstall</b></li><br><br>See the following topic in the Visual Patch 1.0 help file:<br><br><li><b>Command Reference | Settings Menu | System Editors</b></li></p><p>KEYWORDS: Uninstall, Patch, Setup Factory, Visual Patch, Patch Files, AutoPlay</p><hr><FONT SIZE=1>Last reviewed: October 8, 2002<br>Copyright © 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br></FONT></BODY></HTML>