- NSIS Discussion
- Problem under Windows NT SP3
Archive: Problem under Windows NT SP3
Konrad
28th May 2003 22:09 UTC
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
Joel
28th May 2003 22:51 UTC
Did you use "InitPluginsDir"
before that call?
Konrad
28th May 2003 23:04 UTC
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
Afrow UK
28th May 2003 23:09 UTC
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
Joel
28th May 2003 23:12 UTC
If you are using Install Options, put if on the top
of the page creator:
Page custom Task "" ": Some tasks"
Function "Task"
InitPluginsDir
...
FunctionEnd
Konrad
28th May 2003 23:17 UTC
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
Afrow UK
28th May 2003 23:46 UTC
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
Konrad
29th May 2003 09:06 UTC
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!
kichik
29th May 2003 10:15 UTC
This will be improved soon, thank you for the information.
kichik
29th May 2003 10:34 UTC
Afrow, NSIS uses GetTempPath. The linked page contains information about how GetTempPath gets the temporary path.