I have made a c# dll for implement shell extension IThumbnailProvider to 
display a preview image as file icon.I have made an myShellExRegistration.exe 
that write the reg keys for the register the extension for my custom file 
extension (.myFileExt) and I take the assembly of my myThumbnailProvider.dll 
and register it using
RegistrationServices.RegisterAssembly(myAssembly, 
AssemblyRegistrationFlags.SetCodeBase)with this all works fine.
So I have tried to register this extension using wix and not running 
myShellExRegistration.exe
I have write fine the reg key for the file extension, but the registration of 
the dll not works.I have tried using HeatFile item in the project definition 
with the SuppressCom=false SuppressRegistry=false but it seem that using this 
way isn't the same as running the RegistrationServices.RegisterAssebly as it 
doesn't work.
Any idea how to fix this? Is there something that I have lost?
the output for the HEatFile is something like that shown on 
http://wix.tramontana.co.hu/tutorial/com-expression-syntax-miscellanea/components-of-a-different-color
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Fragment> 
    <ComponentGroup Id="SampleGroup">
      <Component Id="cmpA8B0842041500B0ACE61F7EFD0FBD893" 
Directory="dir0F6F75DF46D1BACE2233EC573E6D4AA9" Guid="PUT-GUID-HERE">
        <File Id="filDDAAB2C11E1E5AE4668D99216C3B5523" KeyPath="yes" 
Source="SourceDir\SampleHeat\Interop.Shell32.dll" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32\1.0.0.0" 
Name="Class" Value="Shell32.ShellDispatchInprocClass" Type="string" 
Action="write" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32\1.0.0.0" 
Name="Assembly" Value="Interop.Shell32, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=null" Type="string" Action="write" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32\1.0.0.0" 
Name="RuntimeVersion" Value="v2.0.50727" Type="string" Action="write" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32\1.0.0.0" 
Name="CodeBase" Value="file:///[#filDDAAB2C11E1E5AE4668D99216C3B5523]" 
Type="string" Action="write" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32" Name="Class" 
Value="Shell32.ShellDispatchInprocClass" Type="string" Action="write" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32" 
Name="Assembly" Value="Interop.Shell32, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=null" Type="string" Action="write" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32" 
Name="RuntimeVersion" Value="v2.0.50727" Type="string" Action="write" />
        <RegistryValue Root="HKCR" 
Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32" 
Name="CodeBase" Value="file:///[#filDDAAB2C11E1E5AE4668D99216C3B5523]" 
Type="string" Action="write" />
        ... 
      </Component>
    </ComponentGroup>
  </Fragment>
  
  <Fragment>
    <DirectoryRef Id="TARGETDIR">
      <Directory Id="dir0F6F75DF46D1BACE2233EC573E6D4AA9" Name="SampleHeat" />
    </DirectoryRef>
  </Fragment>
  
  <Fragment>
    <DirectoryRef Id="dir0F6F75DF46D1BACE2233EC573E6D4AA9" />
  </Fragment>
</Wix>                                    
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&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