/** Removes the lock file (which normally gets removed on exit), to enable multiple installs. */
 private void removeLock() {
   String appName = getInstallData().getInfo().getAppName();
   File file = FileUtil.getLockFile(appName);
   if (file.exists()) {
     assertTrue(file.delete());
   }
 }
  /**
   * Sets up the test case.
   *
   * @throws Exception for any error
   */
  @Override
  public void setUp() throws Exception {
    Assume.assumeTrue(
        "This test must be run as administrator, or with Windows UAC turned off",
        !skipTests && isAdminUser);

    super.setUp();
    String appName = getInstallData().getInfo().getAppName();
    assertNotNull(appName);
    File file = FileUtil.getLockFile(appName);
    if (file.exists()) {
      assertTrue(file.delete());
    }

    destroyRegistryEntries();
  }