PDA

View Full Version : ILogLoader::CreateLogFile



mhodanovich
08-15-2003, 06:57 AM
Hello all!

I'm trying to use LogLoader COM object defined in LogUtil.dll.
I need this to read and change values in InstallShield log from VC++.

Everything is OK, I can load InstallShield log (setup.ilg) using ILogLoader::LoadLogFromFile and query values.

if I try to save new log file (with different name, say setup2.ilg) using ILogLoader::CreateLogFile, the file is created but always of size 6144 bytes while original setup.ilg size is >2MB.

Example:

ISetupLogDB *pLogDB;
ILogLoader* pLogLoader;
...
...
pLogLoader->LoadLogFromFile(bstrLogFileName, &pLogDB);
pLogLoader->CreateLogFile(bstrLogFileName2, &pLogDB);
pLogDB->Release();

So I try to call CreateLogFile just after LoadLogFromFile and get 6144 bytes file (bstrLogFileName2), while original (bstrLogFileName) file is > 2MB.

Please help me with any info on this issue.

Sincerely yours,
Maxim Hodanovich

jaikrishnani
05-30-2006, 07:57 AM
Hi,

Is there any way through which I can read/modify my setup.ilg file using VC++ code. As I am trying to provide a migration path for an existing setup that is being already deployed.




Regards
Jai Krishnani