I got it working by adding the following

<Binary Id="DIFxApp.dll" SourceFile="$(var.DIFxAppPath)DIFxApp.dll" />
         <Binary Id="DIFxAppA.dll" 
SourceFile="$(var.DIFxAppPath)DIFxAppA.dll" />
         <CustomAction Id="MsiCleanupOnSuccess" BinaryKey="DIFxApp.dll" 
DllEntry="CleanupOnSuccess" />
         <CustomAction Id="MsiProcessDrivers" BinaryKey="DIFxApp.dll" 
DllEntry="ProcessDriverPackages" />
         <CustomAction Id="MsiInstallDrivers" BinaryKey="DIFxAppA.dll" 
DllEntry="InstallDriverPackages" Execute="deferred" Impersonate="no" />
         <CustomAction Id="MsiUninstallDrivers" BinaryKey="DIFxAppA.dll" 
DllEntry="UninstallDriverPackages" Execute="deferred" Impersonate="no" />
         <CustomAction Id="MsiRollbackInstall" BinaryKey="DIFxAppA.dll" 
DllEntry="RollbackInstall" Execute="rollback" Impersonate="no" />
         <InstallExecuteSequence>
             <Custom Action="MsiCleanupOnSuccess" After="InstallFinalize" />
             <Custom Action="MsiProcessDrivers" After="InstallFiles" />
         </InstallExecuteSequence>


Can't remeber where I got this from...
Think I extraced it from somewhere...
Seems to work for me...

You'll also need the set the var DIFxAppPath to point to the 
DIFxAppA.dll. I think this comes with the windows DDK

Garth

bcs wrote:
> I am trying to install a driver using Wix 3.0 and DifxAppExtension.
> When I build my installer I get this linker error:
> 
> Unresolved reference to symbol 'CustomAction:MsiProcessDrivers'
> 
> My Wix source code is shown below.
> Can anyone help me find out how to avoid this linker error?
> 
> Thanks
> Bo
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
>      xmlns:difx="http://schemas.microsoft.com/wix/DifxAppExtension";>
> 
>   <Product Id="c2bf8f6e-ff84-4b27-adc8-4acc9486cfd3" Name="My Driver"
> Language="1033"
>              Version="1.0.0.0" Manufacturer="My Company"
> UpgradeCode="ad6ba1b3-686a-4f49-8c52-84fe1c389d50">
>     <Package InstallerVersion="200" Compressed="yes" />
> 
>     <Property Id="ALLUSERS">1</Property>
>     <Media Id="1" Cabinet="DriverInstallation.cab" EmbedCab="yes" />
> 
>     <Directory Id="TARGETDIR" Name="SourceDir">
> 
>       <Component Id="ProductComponent"
> Guid="3e0aa007-4463-4f70-aaf2-ad9c1feffb8c">
>         <difx:Driver AddRemovePrograms="no" Legacy="yes"
> PlugAndPlayPrompt="no" />
> 
>         <File Id="MyDriver.sys" Name="MyDriver.sys" Source="MyDriver.sys" />
>         <File Id="MyDriver.inf" Name="MyDriver.inf" Source="MyDriver.inf" />
>       </Component>
> 
>     </Directory>
> 
>     <Feature Id="ProductFeature" Title="My Driver Feature" Level="1">
>       <ComponentRef Id="ProductComponent" />
>     </Feature>
> 
>   </Product>
> </Wix>
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to