public void registerInstallation(){
  try {
    File timestampFile=new File(getExtractDir(),".cargo");
    BufferedWriter bw=new BufferedWriter(new FileWriter(timestampFile));
    bw.write("Do not remove this file");
    bw.close();
  }
 catch (  Exception e) {
  }
}

public void registerInstallation ( ) { try { File timestampFile = new File ( getExtractDir ( ) , ".cargo" ) ; BufferedWriter bw = new BufferedWriter ( new FileWriter ( timestampFile ) ) ; bw . write ( "Do not remove this file" ) ; bw . close ( ) ; } catch ( Exception e ) { } }
create timestamp file to register that the installation has been successful . this allows to prevent installing again next time . if the remote url changes , then the container will be reinstalled .
