Install fails - inappropriate temp file location

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
g..
Posts: 3
Joined: Wed Jul 03, 2019 1:06 pm

Install fails - inappropriate temp file location

Post by g.. »

I am trying to install FreeCAD on a Windows 7 PC and the installation fails with the error "Extract: error writing to file mkl_pgi_thread.dll". This appears to be because the installer is putting the temporary install files in a different location to the specified installation directory.

Steps to reproduce...
I downloaded the file FreeCAD-0.18.16117.dbb4cc6-WIN-x64-installer.exe
I ran the file on a computer with less than 1GB available on C: drive.
I changed the installation directory to be in D: drive (as C drive doesn't have enough space)
I clicked install, and it tries but comes up with the above error.

I have noticed that it fills up all the remaining space on C drive and when there is no space left it gives the error.

Can the installer please be fixed so that it puts temporary files in the same location as the user specifies for install.
wmayer
Founder
Posts: 20245
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Install fails - inappropriate temp file location

Post by wmayer »

We are using NSIS as installer framework and I don't know if this behaviour can be easily changed. But what you can try is:
  1. Open a command line window
  2. set TEMP=D:\Temp
  3. Invoke the installer executable from within the command line window
Now you can check if the tmp. files will be written to D:\Temp
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Install fails - inappropriate temp file location

Post by Syres »

wmayer wrote: Wed Jul 03, 2019 2:07 pm [*]set TEMP=D:\Temp
I think this should be:

[*]set TMP=D:\TEMP

..as the documentation and testing I've carried out suggests the GetTempPath function checks %TMP% first and if it exists will take that and only if it fails does it carry on to %TEMP%. %USERPROFILE% and %WINDIR%.
Post Reply