Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Last active March 12, 2024 14:50
Show Gist options
  • Save peteristhegreat/719db2af49af600e06722827f98c7a52 to your computer and use it in GitHub Desktop.
Save peteristhegreat/719db2af49af600e06722827f98c7a52 to your computer and use it in GitHub Desktop.
qt setup "not enough disk space to store temporary files" windows

qt setup "not enough disk space to store temporary files" windows

If the volume that the temp directory is on is not the same as the install path, then it won't let it install. See the lines in the source for it below:

https://github.com/qtproject/installer-framework/blob/master/src/libs/installer/packagemanagergui.cpp

https://www.google.com/search?q=set+temp+path+batch

To fix it you have to set the %TMP% in a command prompt and launch the installer from that command prompt.

set TMP=C:\Temp
set TEMP=C:\Temp

cd %userprofile%\Downloads
qt-unified-windows-x86-3.0.2-online.exe

Hope that helps.

@Yamakuzure
Copy link

That information just saved my day! Thank you very much!

@DeeDeeCarvalho
Copy link

Tanks. I'm trying to install to a network drive. Hope this will work

@tntljc
Copy link

tntljc commented Nov 25, 2022

Very much appreciate the solution.
I'm working on Linux, setting TMPDIR to the same volume used to work with qt online installer 4.4.1, however, it didn't with 4.5.0.

@tntljc
Copy link

tntljc commented Nov 25, 2022

@Alegriabaile
Copy link

Alegriabaile commented Dec 15, 2022

For those who wants scripts only Setting the TMPDIR environment variable (Linux, UNIX) :
mkdir ~/tmp; export TMPDIR=/home/username/tmp;

@shubhsbankar
Copy link

It worked for me!! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment