NewsArchive
06-28-2012, 04:29 AM
Hi Friedrich,
the following script snippet takes huge time for a 2MB msi (ansi)-log file:
---------------------------------------------------------------------
Set Variable %[L]MSILOGLINECOUNT% to FUNCTION:Count Lines from
"%[L]MSILOG_ANSI%"
Set Variable %[L]COUNTER% to "1"
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "1"
Loop (%[L]MSILOGLINECOUNT% Times)
Set Variable %[L]LOGLINE% to FUNCTION:Get Line "%[L]COUNTER%" from
"%[L]MSILOG_ANSI%"
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "0"
Install Event Entry: "%[L]LOGLINE%"
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "1"
Set Variable %[L]COUNTER% to (Increment by 1)
End
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "0"
---------------------------------------------------------------------
How can I speed up this process?
Thanks for your answer
Markus
the following script snippet takes huge time for a 2MB msi (ansi)-log file:
---------------------------------------------------------------------
Set Variable %[L]MSILOGLINECOUNT% to FUNCTION:Count Lines from
"%[L]MSILOG_ANSI%"
Set Variable %[L]COUNTER% to "1"
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "1"
Loop (%[L]MSILOGLINECOUNT% Times)
Set Variable %[L]LOGLINE% to FUNCTION:Get Line "%[L]COUNTER%" from
"%[L]MSILOG_ANSI%"
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "0"
Install Event Entry: "%[L]LOGLINE%"
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "1"
Set Variable %[L]COUNTER% to (Increment by 1)
End
Set Installer Flag $SB_DISABLEEVENTLOGFLAG$ to "0"
---------------------------------------------------------------------
How can I speed up this process?
Thanks for your answer
Markus