- NSIS Discussion
- nsExec problem
Archive: nsExec problem
Afrow UK
17th February 2003 21:52 UTC
nsExec problem
Could not load: C:\DOCUME~1\WINDOW~1\LOCALS~1\Temp\nst22.tmp\nsExec.dll
I get this when trying to use nsExec
It worked before, but stopped working now.
All I have done is moved parts of my nsi script to seperate nsi files, since my script got so large.
Is this a bug due to the nsExec command being called from in a seperate (!include) file?
I ran my old map-compiler script (when nsExec worked), and it still happens.
Also, how do I use LogText?
-Stuart :(
rainwater
18th February 2003 04:39 UTC
Did you look to see if the file was there?
kichik
18th February 2003 15:53 UTC
b0 or b1? Please attach the script.
kichik
18th February 2003 19:24 UTC
To use LogText you have to compile your own version of NSIS with #define NSIS_CONFIG_LOG uncommented in Source\exehead\config.h. Then use LogSet to turn on/off the log and then you'll be able to use LogText (I think you can skip LogSet, not sure about it).
Afrow UK
18th February 2003 20:02 UTC
Another question...
Is there any way of copying all text in the LogText window, and then pasting it into a file?
I mean a script to do it, instead of the user doing it manually.
-Stuart
kichik
18th February 2003 20:10 UTC
Well, you can do what NSIS does when the user right-clicks the log and chooses copy. This will require System.dll and I don't have much time now so you'll have to wait for tomorrow unless someone will figure it out before me :)
Afrow UK
19th February 2003 19:07 UTC
How is the figuring it out going :)
-Stuart
Irish2007
29th February 2008 20:57 UTC
Kichik, I am using your Dump Log file script for the installer - but it doesn't log the uninstall -- is there a way to adapt this script to log the uninstall information??
thanks so much for the help!
kichik
1st March 2008 15:35 UTC
Well, the function in the example is not built for the uninstaller as you can see by its lack of "un." prefix. If you wish to use it in the uninstaller, rename it to un.DumpLog.
yudyzhao
16th February 2010 12:17 UTC
kichik, I used your dumplog in my installer script. But the install.log content is unreadable at all because I created the installer by Unicode NSIS. Is there Unicode system.dll available or any other way to solve this problem?
Thanks a lot.
kichik
16th February 2010 12:26 UTC
System plug-in already supports Unicode. You just have to call the right functions (W instead of A) with the right parameter types (w instead of t).
yudyzhao
17th February 2010 15:00 UTC
kichik, thanks a lot. Problem is solved! :up:
ptz
8th December 2011 15:32 UTC
Originally posted by kichik
System plug-in already supports Unicode. You just have to call the right functions (W instead of A) with the right parameter types (w instead of t).
I receive an unreadable file too (2.46 Unicode), and I don't understand the instruction kichik gave above regarding how to modify the function (
http://nsis.sourceforge.net/Dump_log_to_file) to make it readable. Help is appreciated.
Thanks.
Afrow UK
8th December 2011 16:23 UTC
Use SendMessageW instead of SendMessageA and you need to use LVM_GETITEMTEXTW instead of LVM_GETITEMTEXT (google the value). You may also need to change the &t to &w but check the Unicode System plug-in readme for that.
Edit: You may also need to use different FileWrite functions but again check the Unicode NSIS manual.
Stu
ptz
8th December 2011 16:52 UTC
Oh, excellent, switching to LVM_GETITEMTEXTW did the trick. Thanks, Stu.