srinannapa
28th May 2007 12:50 UTC
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
Afrow UK
28th May 2007 13:24 UTC
Please post a basic script which reproduces this.
Stu
srinannapa
28th May 2007 13:35 UTC
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
kichik
30th May 2007 20:23 UTC
Works fine for me. Though I had to make a couple of changes to make that script compile properly.