Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3094

NBI Windows Cleaner.exe doesn't delete read-only files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 11.1
    • None
    • platform - Other
    • Windows

    Description

      Problem: The Windows Cleaner process isn't able to delete files with read-only attribute set.

       

      (Windows Cleaner is a small C application which is part of NBI - NetBeans Installer)

       

      This is in particular a problem when the uninstaller tries to delete a bundled JRE as the JRE has files with read-only attribute set.

      For the record: this has always been a problem. The Unistaller leaves files behind and the main reason is this. Note that the equivalent on Linux/Mac, the cleaner.sh script, doesn't suffer from the same problem as it does 'rm -f' operation.

      It is rather trivial to fix. I'll file a PR.

       

       

      Attachments

        Issue Links

          Activity

            People

              lbruun Lars Bruun-Hansen
              lbruun Lars Bruun-Hansen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m