This was solved by:
- Open Computer->Properties->Advanced System Settings
- Click the Advanced Tab
- Click the "Environment Variables..." button at the bottom
- The local user variables for TEMP and TMP use paths that include %USERPROFILE%. Replace this with a hard link, e.g.
D:\User\[username]\AppData\Local\Temp
.