Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Output filename with DumpLog. (http://forums.winamp.com/showthread.php?t=455039)

webtubbies 20th August 2019 14:08

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.

Anders 20th August 2019 15:20

Sounds like you are using the ANSI version of the plug-in.

Any why are you still using the old Unicode fork?

Anders 20th August 2019 22:44

I made a new version with Unicode support, download it from the Wiki.

webtubbies 21st August 2019 11:06

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.


All times are GMT. The time now is 17:24.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.