Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-3610

Windows: may leave files behind after uninstall

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.7.0
    • General
    • None
    • Windows

    Description

      Our installer installs the files AUX.cif, CON.cif, NUL.cif and PRN.cif (from the chemical components dictionary, https://www.wwpdb.org/data/ccd).

      Everything works fine until uninstall. On uninstall these are left behind because AUX, CON, NUL and PRN are reserved names on Windows (https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file) - extensions are ignored. It is possible to remove them with "del \\?\C:\full\path\here\NUL.cif" - note the "\\\?" ("For file I/O, the "\\?\" prefix to a path string tells the Windows APIs to disable all string parsing and to send the string that follows it straight to the file system.", same link as above).

      Obviously this is a very niche case, but it would be great if the IFW could use similar means to remove all files on uninstall, reserved names or not.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            dfranke Daniel Franke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes