- NSIS Discussion
- NSIS error making temp files, temp folder not valid
Archive: NSIS error making temp files, temp folder not valid
BigBang
4th December 2004 14:26 UTC
NSIS error making temp files, temp folder not valid
i've done some researches that what the problem was. but i cant understand it so i will just write my observations for you. if i click on the setup files for many times (fast) the setup will come up properly after a couple of the same errors, and then i wont have anyproblem.
2) this is really interesting. when my cpu is under more than 80% usage , all setups which use NSIS which i tried worked the first time and didnt give any error.
now, i overclocked my computer so its p4 2.8c running at 3.2. i wonder its maybe because my rams are not good enough to accept the information that fast or whatever....... my ram is Corsair VS(value select) 512mb (2x256) DDR400
Motherboard MSI 865PE PFISR
any suggestions? any comments? any thing to say about this?
kichik
10th December 2004 11:27 UTC
To test if the temporary directory is valid, NSIS tries to create a temporary file in it using GetTempFileName. Because of this problem, it is called a hundred times, with different prefixes, to avoid timing issues with other installers.
But I don't think that's the cause of the problem. Is it possible your temporary directory got filled up? It doesn't quite fit with your overclocking, but it's the best I can think of right now.
BigBang
11th December 2004 16:51 UTC
i've deleted all the temporary folder's files and tried it again. nothin helpful happens...
my windows btw is winxp pro SP1
and i have an extra 10gb free on that drive...
kichik
11th December 2004 17:12 UTC
Can you please run the attached program in a command prompt window and paste its output here?
BigBang
12th December 2004 01:52 UTC
Originally posted by kichik
Can you please run the attached program in a command prompt window and paste its output here?
every single setup file which uses NSIS gives that error. do you want me to do it for all the setup files i have?
kichik
14th December 2004 18:03 UTC
The program I attached doesn't need any installer to run. Simply open a command prompt, run it, copy its output and paste it here.
A bit more detailed instruction set:
- Go to Start->Run
- type "cmd" and hit enter
- In the command prompt, type "cd \" and hit enter
- Drag the executable icon into the command prompt window
- Type ">temptestoutput.txt" and hit enter
- Open C:\temptestoutput.txt and paste its contents here
BigBang
14th December 2004 22:38 UTC
i still dont understand but anyways, i followed the intructions and when i hit enter, the nsis error came up again and the text file (test...) was empty. when i tried it more, even when the setup did run properly, nothing was written on the text file.
tried it with more installers, smae thing...
kichik
14th December 2004 22:42 UTC
Don't use the installers, use the executable I have attached above. The executable in this zip file.
BigBang
15th December 2004 22:51 UTC
sorry sorry sorry, from the beginnig i misunderstood the whole thing...
here's the text:
trying C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
after validation - C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
my_GetTempFileName returned - C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nsg42.tmp
success
sorry again
BigBang
15th December 2004 22:54 UTC
byt the way , when i retry it , it gives the same text but nsg becomes something else like nsi or nsp and it randomly changes again and again.....
kichik
16th December 2004 17:31 UTC
That's really weird. It didn't even have to try again. Do you have some kind of anti-virus running in the background? Maybe your anti-virus prevents NSIS from creating a temporary file because it thinks it's a trojan. There was a trojan that was written in NSIS a couple of months ago. That caused a lot of anti-virus programs to detect every NSIS installer. If disabling the anti-virus solves this, try updating to the latest virus definitions.
Bigbang
17th December 2004 11:50 UTC
found the problem. you were right. i use Dr.web antivirus and when i disable it , i wont have any errors etc. thanks for help.
btw im so proud of my anti virus, keeps me protected from anything....
kichik
17th December 2004 11:56 UTC
Great :)
Are you using the latest virus definitions of Dr. Web? If you are, we should contact them and inform them of the problem. If you aren't, try updating and test the installers again.
BigBang
17th December 2004 17:36 UTC
i've updated it today and its working fine.
thanks again
electrox73
28th August 2010 12:02 UTC
Originally posted by kichik
Great :)
Are you using the latest virus definitions of Dr. Web? If you are, we should contact them and inform them of the problem. If you aren't, try updating and test the installers again.
Hi, I am having the same problem and the output says.
trying C:\Users\user\AppData\Local\Temp
after validation - C:\Users\user\AppData\Local\Temp
my_GetTempFileName returned - C:\Users\user\AppData\Local\nsw5B88.tmp
success
PS: Using Windows Vista Home Premium 32-bit and disabling antiviruses didn't work
electrox73
28th August 2010 12:06 UTC
Originally posted by electrox73
Hi, I am having the same problem and the output says.
trying C:\Users\user\AppData\Local\Temp
after validation - C:\Users\user\AppData\Local\Temp
my_GetTempFileName returned - C:\Users\user\AppData\Local\nsw5B88.tmp
success
PS: Using Windows Vista Home Premium 32-bit and disabling antiviruses didn't work
and the .tmp also randomly changes