![]() |
#1 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 ![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
Did you look to see if the file was there?
|
![]() |
![]() |
![]() |
#3 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
b0 or b1? Please attach the script.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#4 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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).
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
![]() |
![]() |
![]() |
#6 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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
![]() NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
How is the figuring it out going
![]() -Stuart |
![]() |
![]() |
![]() |
#8 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Nov 2007
Posts: 4
|
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! |
![]() |
![]() |
![]() |
#10 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Sep 2009
Posts: 7
|
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. |
![]() |
![]() |
![]() |
#12 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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).
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#13 |
Junior Member
Join Date: Sep 2009
Posts: 7
|
![]()
kichik, thanks a lot. Problem is solved!
![]() |
![]() |
![]() |
![]() |
#14 | |
Junior Member
Join Date: Nov 2011
Posts: 8
|
Quote:
Thanks. |
|
![]() |
![]() |
![]() |
#15 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
![]() |
![]() |
![]() |
#16 |
Junior Member
Join Date: Nov 2011
Posts: 8
|
Oh, excellent, switching to LVM_GETITEMTEXTW did the trick. Thanks, Stu.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|