I've created a component to remove a file and also have added a condition based on UPGRADINGPRODUCTCODE property, as I want the log files to be removed only when uninstall, not when upgrading.
The problem I have is that log files are removed always.
I've examined MSM with Orca and everything seems to be OK:
1. in the Component table I found my component with condition:
CLUP.Agent.log.BCAEB422_6D90_4E24_BB9C_6413628A84E1 {0BA40548-261A-430E-B244-474EFC9E6D75} AGENTDIR.BCAEB422_6D90_4E24_BB9C_6413628A84E1 0 (NOT UPGRADINGPRODUCTCODE)
2. in the RemoveFiles table I found relevent entry:
RemoveLogs.BCAEB422_6D90_4E24_BB9C_6413628A84E1 CLUP.Agent.log.BCAEB422_6D90_4E24_BB9C_6413628A84E1 jf6x13ny.*|CLUP.Agent.log.* AGENTDIR.BCAEB422_6D90_4E24_BB9C_6413628A84E1 2
I've examined installation log made during the upgrade and found, that the condition property - UPGRADINGPRODUCTCODE - is set properly:
MSI (s) (B4:14) [08:09:01:448]: PROPERTY CHANGE: Adding UPGRADINGPRODUCTCODE property. Its value is '{A1D231E5-229D-425F-848F-D3A81C445257}'.
Log removal action occurs much later:
Action 8:09:39: RemoveFiles. Removing files
MSI (s) (B4:14) [08:09:39:841]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=175000)
MSI (s) (B4:14) [08:09:39:841]: Executing op: SetTargetFolder(Folder=C:\Program Files\ClUp\Agent)
MSI (s) (B4:14) [08:09:39:841]: Executing op: FileRemove(,FileName=Clup.Agent.log,,)
So why logs are removed?What is wrong?
Edited by TomekR, 23 September 2010 - 07:20.