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
DumpLog:: DumpLog "log.txt" .R0 will generate a file named "l"DumpLog:: DumpLog "${TempDir}\install_${MyTIMESTAMP}.log" .R0 will generate a file named "i"here the testing 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 $0 $0 + 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.