Archive: Logtext


Logtext
LogText is not writing to the install.log file even though every thing is set ready for logging.. My LogSet is on only.

it is creating install.log but unable to write LogText

Eg: LogText " Directory Created $R2"


Please help

Thanks,
Srinivas N


Please post a basic script which reproduces this.

Stu


Hi,
!include "MUI.nsh"
!include "LogicLib.nsh"
!define ALL_USERS
!include "WriteEnvStr.nsh"
!include "FileFunc.nsh"
!insertmacro GetSize
!insertmacro LogText
!insertmacro MUI_PAGE_LICENSE "C:\installer\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH



Section -
LogSet on
SectionEnd

Section "Default Files" SEC032
XXXXXXXXXXXXXxxxx

CreateDirectory "$INSTDIR\$R2"
LogText " Created directory : $R2"
CopyFiles /SILENT "$EXEDIR\3D\$R2\*.*" "$INSTDIR\$R2"
LogText " Copied files to directory : $R2"

XXXXXXXXXXXXXXXx
SectionEnd

i'm using latest special build for logging
Thanks,
Srinivas N


Works fine for me. Though I had to make a couple of changes to make that script compile properly.