Old 20th August 2019, 15:08   #1
webtubbies
Junior Member
 
Join Date: Sep 2009
Posts: 17
Output filename with DumpLog.

Hi all,

I am trying to use the DumpLog plugin. Logging installation is OK as I call the correct syntax in the 2 functions .onInstFailed ans .oninstSuccess.

The problem is the log has no extention and only the first letter of the wanted name.

For instance

PHP Code:
DumpLog:: DumpLog "log.txt" .R0 
will generate a file named "l"

PHP Code:
DumpLog:: DumpLog "${TempDir}\install_${MyTIMESTAMP}.log" .R0 
will generate a file named "i"

here the testing code:
PHP Code:
Name "DumpLogTest"
OutFile "DumpLogTest.exe"

Section
    
!define /date MyTIMESTAMP "%Y-%m-%d_%H-%M-%S"
    
!define TempDir "C:\TEMP"
    
MessageBox MB_OK "${MyTIMESTAMP}"
    
StrCpy $0 0

    loop
:
    
DetailPrint "$0"
    
IntOp $$1
    StrCmp 
$0 50 0 loop

    DumpLog
::DumpLog "log.txt" .R0
    MessageBox MB_OK 
"${TempDir}\install_${MyTIMESTAMP}.log"
    
DumpLog::DumpLog "${TempDir}\install_${MyTIMESTAMP}.log" .R0
    
/*MessageBox MB_OK "DumpLog::DumpLog$\n$\n\
            Errorlevel: [$R0]" */
SectionEnd 
If anyone of you have an idea... thanks.
NSIS 2.46 Unicode on WIN 10 64bits.
webtubbies is offline   Reply With Quote
Old 20th August 2019, 16:20   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,172
Sounds like you are using the ANSI version of the plug-in.

Any why are you still using the old Unicode fork?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 20th August 2019, 23:44   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,172
I made a new version with Unicode support, download it from the Wiki.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st August 2019, 12:06   #4
webtubbies
Junior Member
 
Join Date: Sep 2009
Posts: 17
Thanks for your reply. I know I have to upgrade my nsis version...

thank you too for the unicode version of the plugin. Everything works fine now.
webtubbies is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump