Ok, and does doing a repair at the end actually restore the missing event 
sources?

-----Original Message-----
From: Steven Ogilvie [mailto:steven.ogil...@titus.com] 
Sent: Monday, February 17, 2014 9:05 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Event Source not populating on upgrade...

32 bit condition (sorry nabble removes the conditions :( hence I have put extra 
spaces here...

<Condition>< ! [ CDATA[NETFRAMEWORK40FULLINSTALLROOTDIR AND NOT VersionNT64] ] 
></Condition>

64 bit condition:

Condition>< ! [ CDATA[NETFRAMEWORK40FULLINSTALLROOTDIR64 AND 
Condition>VersionNT64] ] ></Condition>

RemoveExistingProducts is (all my clients and my services installer):
<RemoveExistingProducts Overridable="yes" After="InstallInitialize"/>

I have this in all my Clients, and services: <MajorUpgrade 
DowngradeErrorMessage="A newer version of $(var.PlatformProductName) is already 
installed. Setup will now exit." Schedule="afterInstallValidate"  
AllowDowngrades="no"/>

-----Original Message-----
From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com]
Sent: February-17-14 8:18 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Event Source not populating on upgrade...

What are the conditions on the components?  When do you have 
RemoveExistingProducts scheduled? If you repair your upgrade, do the other 
event sources show up?

-----Original Message-----
From: Steve-Ogilvie [mailto:steven.ogil...@titus.com]
Sent: Monday, February 17, 2014 6:41 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Event Source not populating on upgrade...

Hi all,

I have a RTM version of our software which has 2 client MSI’s

The Event Source on the RTM install is fine, all there, but on the upgrade only 
1 of the Event Source is showing up:
RTM:
<PropertyRef Id="NETFRAMEWORK40FULLINSTALLROOTDIR"/>
    <PropertyRef Id="NETFRAMEWORK40FULLINSTALLROOTDIR64"/>

<Component Id="cmp_TMCEventLog" Guid="SOME GUID" KeyPath="yes">
              <RegistryKey Root="HKLM"
Key="SYSTEM\CurrentControlSet\Services\EventLog\My Company"
ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
                <Permission User="NETWORK SERVICE" ReadPermission="yes" />
              </RegistryKey>
              <util:EventSource Name="Blah Blah for Blah"
                               
EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll"
                                Log=" My Company "/>
              <util:EventSource Name="Blah"
                               
EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll"
                                Log=" My Company "/>
              <util:EventSource Name="MYCOMPANY"
                               
EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll"
                                Log=" My Company "/>
              <Condition></Condition>
            </Component> <!—same for x64 but x64 property- ->

Run our “hotfox” (just a later build with GUID and 3rd number in version 
incremented which forces an major upgrade) <PropertyRef 
Id="NETFRAMEWORK40FULLINSTALLROOTDIR"/>
    <PropertyRef Id="NETFRAMEWORK40FULLINSTALLROOTDIR64"/>
    <PropertyRef Id="NETFRAMEWORK40CLIENTINSTALLROOTDIR"/>
    <PropertyRef Id="NETFRAMEWORK40CLIENTINSTALLROOTDIR64"/>

<Component Id="cmp_TMCEventLog_Full" Guid="SOME GUID" KeyPath="yes">
              <RegistryKey Root="HKLM"
Key="SYSTEM\CurrentControlSet\Services\EventLog\My Company"
ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
                <Permission User="NETWORK SERVICE" ReadPermission="yes" />
              </RegistryKey>
              <util:EventSource Name="Blah Blah for Blah"
                               
EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll"
                                Log="My Company"/>
              <util:EventSource Name="Blah"
                               
EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll"
                                Log="My Company"/>
              <util:EventSource Name="MYCOMPANY"
                               
EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll"
                                Log="My Company"/>
              <Condition></Condition>
            </Component>
            
            <Component Id="cmp_TMCEventLog_Client" Guid="SOME GUID"
KeyPath="yes">
              <RegistryKey Root="HKLM"
Key="SYSTEM\CurrentControlSet\Services\EventLog\My Company"
ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
                <Permission User="NETWORK SERVICE" ReadPermission="yes" />
              </RegistryKey>
              <util:EventSource Name="Blah Blah for Blah"
                               
EventMessageFile="[NETFRAMEWORK40CLIENTINSTALLROOTDIR]EventLogMessages.dll"
                                Log="My Company"/>
              <util:EventSource Name="Blah"
                               
EventMessageFile="[NETFRAMEWORK40CLIENTINSTALLROOTDIR]EventLogMessages.dll"
                                Log="My Company"/>
              <util:EventSource Name="MYCOMPANY"
                               
EventMessageFile="[NETFRAMEWORK40CLIENTINSTALLROOTDIR]EventLogMessages.dll"
                                Log="My Company"/>
              <Condition></Condition>
            </Component>

And the same for X64

Looking at the log, during the uninstall I can see it removing the registry 
keys for event source and during install of the new version I can see it 
creating the registry keys but why are they not there??

Anyway here is he uninstall logging of event source:
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs,,BinaryType=0,,)
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=Sources,Value=[~]TITUS
Message Classification,)
MSI (s) (5C:90) [13:21:40:726]: Executing op: RegRemoveKey() MSI (s) (5C:90) 
[13:21:40:726]: Executing op:
RegRemoveValue(Name=AutoBackupLogFiles,Value=#0,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus Labs 3:
2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=File,Value=#%[%SystemRoot]\System32\config\Titus
La.evt,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus Labs 3:
2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=MaxSize,Value=#524288,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus Labs 3:
2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=Retention,Value=#604800,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus Labs 3:
2
MSI (s) (5C:90) [13:21:40:726]: Executing op: RegRemoveKey() MSI (s) (5C:90) 
[13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus Labs 3:
2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\Message Classification for Microsoft Outlook,,BinaryType=0,,) MSI (s) 
(5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=EventMessageFile,Value=#%[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\Message Classification for Microsoft Outlook 3: 2 MSI (s) (5C:90) 
[13:21:40:726]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\Message Classification,,BinaryType=0,,) MSI (s) (5C:90) [13:21:40:726]: 
Executing op:
RegRemoveValue(Name=EventMessageFile,Value=#%[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\Message Classification 3: 2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\TITUS,,BinaryType=0,,)
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=EventMessageFile,Value=#%[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\TITUS 3: 2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Office\Outlook\Addins\TitusLabsMessageClassification.Connect,,BinaryType=0,,)
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=Description,Value=TITUS Message Classification for 
Microsoft Outlook,) MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\TitusLabsMessageClassification.Connect
3: 2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=FriendlyName,Value=TITUS Message Classification for 
Microsoft Outlook,) MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\TitusLabsMessageClassification.Connect
3: 2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=ProductInstalled,Value=TMC,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\TitusLabsMessageClassification.Connect
3: 2
MSI (s) (5C:90) [13:21:40:726]: Executing op:
RegRemoveValue(Name=LoadBehavior,Value=#3,)
MSI (s) (5C:90) [13:21:40:726]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\TitusLabsMessageClassification.Connect
3: 2
MSI (s) (5C:90) [13:21:40:726]: Executing op: RegRemoveKey() MSI (s) (5C:90) 
[13:21:40:726]: Note: 1: 1402 2: 

Here is install logging of event source:

MSI (s) (5C:50) [13:21:53:062]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs,,BinaryType=0,,)
MSI (s) (5C:50) [13:21:53:062]: Executing op:
RegAddValue(Name=Sources,Value=[~]TITUS
Message Classification,)
MSI (s) (5C:50) [13:21:53:062]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Titus Labs 3:
2
MSI (s) (5C:50) [13:21:53:062]: Executing op: RegCreateKey() MSI (s) (5C:50) 
[13:21:53:062]: Executing op: RegCreateKey() MSI (s) (5C:50) [13:21:53:062]: 
Executing op:
RegAddValue(Name=AutoBackupLogFiles,Value=#0,)
MSI (s) (5C:50) [13:21:53:062]: Executing op:
RegAddValue(Name=File,Value=#%C:\Windows\System32\config\Titus La.evt,) MSI (s) 
(5C:50) [13:21:53:078]: Executing op:
RegAddValue(Name=MaxSize,Value=#524288,)
MSI (s) (5C:50) [13:21:53:078]: Executing op:
RegAddValue(Name=Retention,Value=#604800,)
MSI (s) (5C:50) [13:21:53:078]: Executing op: RegCreateKey() MSI (s) (5C:50) 
[13:21:53:078]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\Message Classification for Microsoft Outlook,,BinaryType=0,,) MSI (s) 
(5C:50) [13:21:53:078]: Executing op:
RegAddValue(Name=EventMessageFile,Value=#%C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll,)
MSI (s) (5C:50) [13:21:53:078]: Executing op:
RegAddValue(Name=EventMessageFile,Value=#%C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll,)
MSI (s) (5C:50) [13:21:53:078]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\Message Classification,,BinaryType=0,,) MSI (s) (5C:50) [13:21:53:078]: 
Executing op:
RegAddValue(Name=EventMessageFile,Value=#%C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll,)
MSI (s) (5C:50) [13:21:53:078]: Executing op:
RegAddValue(Name=EventMessageFile,Value=#%C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll,)
MSI (s) (5C:50) [13:21:53:078]: Executing op:
RegOpenKey(Root=-2147483646,Key=SYSTEM\CurrentControlSet\Services\EventLog\Titus
Labs\TITUS,,BinaryType=0,,)
MSI (s) (5C:50) [13:21:53:078]: Executing op:
RegAddValue(Name=EventMessageFile,Value=#%C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll,)
MSI (s) (5C:50) [13:21:53:078]: Executing op:
RegAddValue(Name=EventMessageFile,Value=#%C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll,)

Why is it not really in the registry?? From the logging it states it is there…

Any help would be appreciated

STeve





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Event-Source-not-populating-on-upgrade-tp7592732.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications Take advantage of what the 
Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications Take advantage of what the 
Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications Take advantage of what the 
Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to