Archive: Problem under Windows NT SP3


Problem under Windows NT SP3
While the setup created by NSIS runs without problems under Windows XP, there are problems with a fresh installation of Windows NT 4 SP3!
The setup always displays a messagebox if i wanted to start it, which says:

Error! Can't initialize plug-ins directory. Please try again later.
Has anyone else the same problem? How can it be fixed?
(The version before the latest CVS displayed another error message!)

Thanks in advance, Konrad

Did you use "InitPluginsDir"
before that call?


Even if i use InitPluginsDir in .onInit (I don't do it before), it displays the same error message. This message appears just after executing the setup.
Please help!
Konrad


Have you had a look in the %TEMP% folder were the $PLUGINS dir is created?
Could there be something stopping anything being dumped in the %TEMP% dir (e.g. antivirus software or something)

-Stu


If you are using Install Options, put if on the top
of the page creator:


Page custom Task "" ": Some tasks"

Function "Task"
InitPluginsDir
...
FunctionEnd


Juhu, just solved the problem. On a fresh NT Installation it might be possible that the Temp folder isn't yet created, although there is an environment variable for it!
To prevent this error from occuring, please check in the setup if the Temp directory is already created and if not -> create it!!!
Please implement that in the NSIS code!
Thanks
Konrad


IfFileExists "$TEMP\*.*" +2
CreateDirectory $TEMP

I am wondering however, how does NSIS find the $TEMP dir if there is no temp dir on the PC?
Does it get it from %TEMP%, or does it work it out from the OS.

-Stu


The TEMP folder is stored in an environment variable! Because NSIS uses the TEMP file before any code is executed, the creating of the TEMP folder must happen, before NSIS tries to write to it.
Please implement this, NSIS developers!


This will be improved soon, thank you for the information.


Afrow, NSIS uses GetTempPath. The linked page contains information about how GetTempPath gets the temporary path.