I have created an Outlook VSTO COM addin. Used Wix to generte MSI for Distribution , but the dll always gets loaded from the adddata/local/assembly. i am trying to make them get loaded from the installation folder . this is my wix components.wxs :
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Fragment>
<!-- Product Components -->
<ComponentGroup Id="ProductComponents">
<!-- Registry Action -->
<ComponentRef Id="RegisteryAction"/>
</ComponentGroup>
<!-- Installed files -->
<DirectoryRef Id="INSTALLFOLDER" FileSource="..\PhishingReport_v3\bin\Release\$(var.Platform)">
<Component Id="RegisteryAction" Guid="{0995664D-AE63-4DD6-B894-708A99611370}">
<RegistryKey Root="HKLM"
Key="Software\Microsoft\Office\Outlook\Addins\PhishingReport_v3"
Action="createAndRemoveOnUninstall"
ForceCreateOnInstall="yes">
<RegistryValue Type="string" Name="Description" Value="BeamSec / Phishing Report" />
<RegistryValue Type="string" Name="FriendlyName" Value="Phishing Report" />
<RegistryValue Type="integer" Name="LoadBehavior" Value="3" />
<!-- Updated Manifest entry -->
<RegistryValue Type="string" Name="Manifest" Value="[INSTALLFOLDER]PhishingReport_v3.vsto|vstolocal" KeyPath="yes" />
</RegistryKey>
<!-- Registry entries for Office 2016/2019 -->
<RegistryKey Root="HKLM"
Key="Software\Microsoft\Office\16.0\Outlook\Resiliency\AddinList"
Action="createAndRemoveOnUninstall"
ForceCreateOnInstall="yes">
<RegistryValue Type="integer" Name="PhishingReport_v3" Value="1"/>
</RegistryKey>
<RegistryKey Root="HKLM"
Key="Software\Microsoft\Office\16.0\Outlook\Resiliency\DoNotDisableAddinList"
Action="createAndRemoveOnUninstall"
ForceCreateOnInstall="yes">
<RegistryValue Type="integer" Name="PhishingReport_v3" Value="1"/>
</RegistryKey>
<RemoveRegistryKey Root="HKLM"
Key="Software\Microsoft\Office\16.0\Outlook\Resiliency\DisabledItems"
Action="removeOnInstall">
</RemoveRegistryKey >
<RemoveRegistryKey Root="HKLM"
Key="Software\Microsoft\Office\16.0\Outlook\Resiliency\CrashingAddinList"
Action="removeOnInstall">
</RemoveRegistryKey >
<!-- Office 2013 -->
<RegistryKey Root="HKLM"
Key="Software\Microsoft\Office\15.0\Outlook\Resiliency\AddinList"
Action="createAndRemoveOnUninstall"
ForceCreateOnInstall="yes">
<RegistryValue Type="integer" Name="PhishingReport_v3" Value="1"/>
</RegistryKey>
<RegistryKey Root="HKLM"
Key="Software\Microsoft\Office\15.0\Outlook\Resiliency\DoNotDisableAddinList"
Action="createAndRemoveOnUninstall"
ForceCreateOnInstall="yes">
<RegistryValue Type="integer" Name="PhishingReport_v3" Value="1"/>
</RegistryKey>
<RemoveRegistryKey Root="HKLM"
Key="Software\Microsoft\Office\15.0\Outlook\Resiliency\DisabledItems"
Action="removeOnInstall">
</RemoveRegistryKey >
<RemoveRegistryKey Root="HKLM"
Key="Software\Microsoft\Office\15.0\Outlook\Resiliency\CrashingAddinList"
Action="removeOnInstall">
</RemoveRegistryKey >
</Component>
</DirectoryRef>
</Fragment>
</Wix>
My dlls are all code signed.