Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Maintenance tool error: "Cannot open file "" for writing: No error"
Forum Updated to NodeBB v4.3 + New Features

Maintenance tool error: "Cannot open file "" for writing: No error"

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
39 Posts 9 Posters 8.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hskoglundH Online
    hskoglundH Online
    hskoglund
    wrote on last edited by
    #5

    Hi, check your TEMP and TMP environment variables, if they point to non-existing directories on your PC, then Maintenance Tool gives this error.

    If that's the case also for you: one quick solution:

    set temp=
    set tmp=
    c:\qt\maintenancetool.exe
    
    M 2 Replies Last reply
    3
    • hskoglundH hskoglund

      Hi, check your TEMP and TMP environment variables, if they point to non-existing directories on your PC, then Maintenance Tool gives this error.

      If that's the case also for you: one quick solution:

      set temp=
      set tmp=
      c:\qt\maintenancetool.exe
      
      M Offline
      M Offline
      mcleary
      wrote on last edited by
      #6

      @hskoglund I'll try again this evening and report back. Thanks for the tip

      1 Reply Last reply
      0
      • hskoglundH hskoglund

        Hi, check your TEMP and TMP environment variables, if they point to non-existing directories on your PC, then Maintenance Tool gives this error.

        If that's the case also for you: one quick solution:

        set temp=
        set tmp=
        c:\qt\maintenancetool.exe
        
        M Offline
        M Offline
        mcleary
        wrote on last edited by
        #7

        @hskoglund No luck with this solution. Same error. I even tried the offline installer but I get the following message.
        alt text

        Any tips?

        1 Reply Last reply
        0
        • hskoglundH Online
          hskoglundH Online
          hskoglund
          wrote on last edited by
          #8

          Hi, just guessing, but if you copy the offline installer .exe file to somewhere on your C: drive (instead of E:) and invoke it from there (and using the same incantations, set temp= and set tmp=

          M 1 Reply Last reply
          1
          • hskoglundH hskoglund

            Hi, just guessing, but if you copy the offline installer .exe file to somewhere on your C: drive (instead of E:) and invoke it from there (and using the same incantations, set temp= and set tmp=

            M Offline
            M Offline
            mcleary
            wrote on last edited by
            #9

            @hskoglund Unfortunately same error. When running "Writing maintenance tool." it gives me the same error dialog.
            alt text

            Unfortunately I have no clues on what could be wrong with my system.

            aha_1980A 1 Reply Last reply
            0
            • M mcleary

              @hskoglund Unfortunately same error. When running "Writing maintenance tool." it gives me the same error dialog.
              alt text

              Unfortunately I have no clues on what could be wrong with my system.

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #10

              Hi@mcleary,

              did you run the tool as normal user or as administrator?

              If you have run it as admin before, you will probably need to do so again.

              Also, ave you checked there is enough free space on your drives?

              Regards.

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • hskoglundH Online
                hskoglundH Online
                hskoglund
                wrote on last edited by
                #11

                Also, to add to @aha_1980, if you have an antivirus program running (other than the one built in with Windows 10) try disable it

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  mcleary
                  wrote on last edited by
                  #12

                  I tried running as admin but the same message keeps popping.

                  I do have plenty of space (more than 100GB free) and I don't have any antivirus software installed.

                  I am trying to run some debug tools like process monitor to see if I can figure it out without reinstalling everything.

                  1 Reply Last reply
                  0
                  • hskoglundH Online
                    hskoglundH Online
                    hskoglund
                    wrote on last edited by
                    #13

                    Ok, more one guess :-) try installing Qt to some other place/directory than what you've done so far, e.g. instead of C:\Qt try C:\Qt2

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mcleary
                      wrote on last edited by mcleary
                      #14

                      No luck, same error. There is something wrong with the Maintenance tool path

                      1 Reply Last reply
                      0
                      • hskoglundH Online
                        hskoglundH Online
                        hskoglund
                        wrote on last edited by
                        #15

                        Yeah, as a last ditch, you could try one more setting:

                        set path=
                        qt-opensource-windows-x86-5.14.1.exe
                        

                        (if there's some bad stuff in your path setting)

                        M 2 Replies Last reply
                        0
                        • hskoglundH hskoglund

                          Yeah, as a last ditch, you could try one more setting:

                          set path=
                          qt-opensource-windows-x86-5.14.1.exe
                          

                          (if there's some bad stuff in your path setting)

                          M Offline
                          M Offline
                          mcleary
                          wrote on last edited by
                          #16

                          @hskoglund Does this hangs any bells?

                          alt text

                          1 Reply Last reply
                          0
                          • hskoglundH hskoglund

                            Yeah, as a last ditch, you could try one more setting:

                            set path=
                            qt-opensource-windows-x86-5.14.1.exe
                            

                            (if there's some bad stuff in your path setting)

                            M Offline
                            M Offline
                            mcleary
                            wrote on last edited by
                            #17

                            @hskoglund No luck clearing the path.

                            1 Reply Last reply
                            0
                            • hskoglundH Online
                              hskoglundH Online
                              hskoglund
                              wrote on last edited by
                              #18

                              Hmm name collision, interesting...
                              Ok try to set another, explicit TEMP path, first create a directory (say C:\Temp that's guaranteed to be empty), then try:

                              set temp=C:\Temp
                              set tmp=C:\Temp
                              qt-opensource-windows-x86-5.14.1.exe
                              
                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mcleary
                                wrote on last edited by
                                #19

                                Same problem. Fortunately if I kill the installer process while this dialog is being displayed I can keep the installation, I just don't have the maintenance tool. This is enough for me to keep working for now.

                                Thanks for the help

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mcleary
                                  wrote on last edited by
                                  #20

                                  Right, so now I can say for sure that there is something wrong with the installer.

                                  I just tried the installer in a brand new machine and I get the same message:

                                  alt text

                                  Right after it finishes downloading the repositories.

                                  Now I am pretty sure it is not just my machine anymore.

                                  1 Reply Last reply
                                  0
                                  • hskoglundH Online
                                    hskoglundH Online
                                    hskoglund
                                    wrote on last edited by
                                    #21

                                    Hmm just installed Qt 5.14.1 using the online installer qt-unified-windows-x86-3.2.1-2-online.exe on a Windows 10 PC:
                                    alt text
                                    (I selected only MSVC2017 64-bit and answered No for participating in the telemetry/statistics.)

                                    Maybe it's something with different versions of Windows 10? I have version 19.03 10.0.18362.657 (the version numbers can be seen on the 1st line when you open a CMD window).

                                    Your 2 Windows 10 PCs that go south, are they running the same version of Windows 10?

                                    1 Reply Last reply
                                    1
                                    • M Offline
                                      M Offline
                                      mcleary
                                      wrote on last edited by mcleary
                                      #22

                                      Really appreciate the help.

                                      Is that the online installer? Using the online installer I can't even get to the page to select which Qt version to install.

                                      So one Windows is exactly the same as yours, 19.03 10.0.18362.657

                                      The other one is 19.09 10.0.0.18363.592

                                      1 Reply Last reply
                                      0
                                      • hskoglundH Online
                                        hskoglundH Online
                                        hskoglund
                                        wrote on last edited by
                                        #23

                                        Yep it was the online installer. (I can try with the offline version soon.)

                                        So the problem you have when using the online installer, "can't even get to the page..." do you get an error message or does the online installer just die at that point?

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          mcleary
                                          wrote on last edited by
                                          #24

                                          So, you can see exactly what is happening in this small recording I just did: https://webmshare.com/play/mKdNX

                                          hskoglundH 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved