Archive: NSIS error making temp files, temp folder not valid


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?


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.


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...


Can you please run the attached program in a command prompt window and paste its output here?


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?

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:


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...


Don't use the installers, use the executable I have attached above. The executable in this zip file.


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


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.....


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.


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....


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.


i've updated it today and its working fine.
thanks again


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

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