PDA

View Full Version : Issue getting the property MsiLogFileLocation on a clean machine



GHomewood
11-18-2014, 04:50 AM
Hi
I'm having issues with the property MsiLogFileLocation on a clean windows 7 x86 machine with WI 5.0.
my project is a msi with installscript.

The project msi logging its set to
MsiLogging=voicewarmup

While running on my windows 2008 r2 dev machine 2 log file get output to the %temp% folder as soon as I click the setup.exe
Local Group Policy | Windows Installer | Logging =Enabled

And when I execute the below i get the log file location (in OnBegin)
nBuffer = 256;
nReturn = MsiGetProperty(ISMSI_HANDLE ,"MsiLogFileLocation", szReturn, nBuffer);

Once the file transfer kicks off I get another log (that's 3 logs in total in my temp MSI2334a.log, MSI2334f.LOG, MSI23349.LOG)
Not sure why it's creating 3 does anyone know?

Issue is when I run the same code on a clean windows 7 x86 machine with WI 5.0
Local Group Policy | Windows Installer | Logging =Not Configured
The log file does not get created until the file transfer.
Also when I do the above call to MsiGetProperty in OnBegin it returns nothing.

When I enable the Local Group Policy on the windows 7 x86 machine I get logging
Windows Installer | Logging =Enabled

Is there something I've missed? or a msi property that needs setting?
Also when I open the log that got created at file transfer I can see the MsiLogFileLocation is set.