Prev Previous Post   Next Post Next
Old 20th August 2019, 15:08   #1
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"

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

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

::DumpLog "log.txt" .R0
    MessageBox MB_OK 
DumpLog::DumpLog "${TempDir}\install_${MyTIMESTAMP}.log" .R0
/*MessageBox MB_OK "DumpLog::DumpLog$\n$\n\
            Errorlevel: [$R0]" */
If anyone of you have an idea... thanks.
NSIS 2.46 Unicode on WIN 10 64bits.
webtubbies is offline   Reply With Quote
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