VDProj to WiX: OutlookAddin.dll.config

Add-in Express™ Support Service
That's what is more important than anything else

VDProj to WiX: OutlookAddin.dll.config
Plugin Configuration Assembly missing in MSI 
aaron.hogue@rlicorp.com




Posts: 3
Joined: 2014-04-03
heat.exe doesn't generate the correct pattern Office plugins use for configuration files - they typically follow the pattern OfficeAddin.dll.config. We need to be able to include the configuration for each plugin (Excel, Word, Outlook, etc.).

This is the generated WXS used by converter for the Project Output binaries...

OfficeAddin_2.xml


<ProjectOutput Name="OfficeAddIn_2" ProjectDirVar="$(var.OfficeAddIn.ProjectDir)" TargetDirVar="$(var.OfficeAddIn.TargetDir)" SharedFileId="_B7B80084_A17D_4B07_9FC5_7F36FDC5340C" Tag="_2">
  <Binaries>
    <DiskId>1</DiskId>
    <Compressed>yes</Compressed>
    <Hidden>no</Hidden>
    <KeyPath>yes</KeyPath>
    <ReadOnly>no</ReadOnly>
    <System>no</System>
    <Vital>yes</Vital>
    <Permanent>no</Permanent>
    <SharedDllRefCount>no</SharedDllRefCount>
    <Transitive>no</Transitive>
  </Binaries>
</ProjectOutput>


Generated OfficeAddin_2.wxs...


<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Fragment>
    <DirectoryRef Id="OfficeAddIn_2.Binaries">
      <Component Id="com_B7B80084_A17D_4B07_9FC5_7F36FDC5340C" Guid="{2F77DBC4-9334-4F67-8991-A4001ED86C62}" Permanent="no" SharedDllRefCount="no" Transitive="no">
        <File Id="_B7B80084_A17D_4B07_9FC5_7F36FDC5340C" Compressed="yes" DiskId="1" Hidden="no" KeyPath="yes" ReadOnly="no" System="no" Vital="yes" Source="$(var.OfficeAddIn.TargetDir)OfficeAddIn.dll" />
      </Component>
      <Component Id="cmp1371E89086CE398AF5D423EDAFA21774_2" Guid="{53C53620-6653-4C07-AD29-50F7804FEC05}" Permanent="no" SharedDllRefCount="no" Transitive="no">
        <File Id="filCFFE2B646264FD88AB0AB9070102B19E_2" Compressed="yes" DiskId="1" Hidden="no" KeyPath="yes" ReadOnly="no" System="no" Vital="yes" Source="$(var.OfficeAddIn.TargetDir)App.config" />
      </Component>
    </DirectoryRef>
  </Fragment>
  <Fragment>
    <ComponentGroup Id="OfficeAddIn_2.Binaries">
      <ComponentRef Id="com_B7B80084_A17D_4B07_9FC5_7F36FDC5340C" />
      <ComponentRef Id="cmp1371E89086CE398AF5D423EDAFA21774_2" />
    </ComponentGroup>
  </Fragment>
</Wix>


We need the File node Source attribute to be $(var.OfficeAddIn.TargetDir)\OfficeAddIn.dll.config"...not $(var.OfficeAddIn.TargetDir)\App.config. Is this an issue with heat.exe? If so - how can we correct it? Our plugins require this configuration file to function.

Thanks!
Posted 03 Apr, 2014 17:18:43 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Aaron,

Please show me the content of the OfficeAddin_2.xml located in the 'obj\<Config name>\Harvested XML\' directory of your project.
Posted 04 Apr, 2014 04:54:32 Top
aaron.hogue@rlicorp.com




Posts: 3
Joined: 2014-04-03
Hi Sergey - here is the code you requested...

OutlookAddin_2.xml from heat.exe


<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Fragment>
        <DirectoryRef Id="OfficeAddIn_2.Binaries">
            <Component Id="cmp9A7C8A048033058364C9FEA606E22FDC" Guid="{2F77DBC4-9334-4F67-8991-A4001ED86C62}">
                <File Id="fil55D9AF61C9901A56F6DC4AC901B9B7E0" Source="$(var.OfficeAddIn_2.TargetDir)OfficeAddIn.dll" />
            </Component>
            <Component Id="cmp1371E89086CE398AF5D423EDAFA21774" Guid="{53C53620-6653-4C07-AD29-50F7804FEC05}">
                <File Id="filCFFE2B646264FD88AB0AB9070102B19E" Source="$(var.OfficeAddIn_2.TargetDir)App.config" />
            </Component>
        </DirectoryRef>
    </Fragment>
    <Fragment>
        <ComponentGroup Id="OfficeAddIn_2.Binaries">
            <ComponentRef Id="cmp9A7C8A048033058364C9FEA606E22FDC" />
            <ComponentRef Id="cmp1371E89086CE398AF5D423EDAFA21774" />
        </ComponentGroup>
    </Fragment>
</Wix>
Posted 04 Apr, 2014 08:11:50 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Aaron,

I have just sent you a solution by e-mail. Please check your inbox.
Posted 04 Apr, 2014 10:46:32 Top