Delete locked files during uninstallation

Comments

1 comment

  • Avatar
    michiel

    In a lot of cases when a dll is locked it is because it is being used by a running process. You would first have to find out which application is locking using the dll and then use <kill> to kill the process before uninstalling:

      <preUninstallationActionList>
       ... 
       <kill>
          <name>program.exe</name>
          <path>/path/to/programfolder/</path>
        </kill>
       ...
      </preUninstallationActionList>
    

Please sign in to leave a comment.