View Single Post
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