Instead of the "-c" switch, you'll need the "-s" switch:

"tallow -nologo -s LicensingClientShim.dll"

Hth,
Franz

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:wix-users-
> [EMAIL PROTECTED] Im Auftrag von Duncan Bayne
> Gesendet: Mittwoch, 05. September 2007 13:33
> An: wix-users@lists.sourceforge.net
> Betreff: [WiX-users] tallow.exe failing to generate fragment for
> unmanagedshim DLL
> 
> Hi All,
> 
> First of all, I'm loving WiX, having come to it from an InstallShield
> background.  It's everything I always wished IS was ...
> 
> However, I'm having a problem getting tallow.exe to generate the
> fragment to use to register a COM object.  The catch is that the COM
> object is actually an unmanaged shim for a managed DLL, which is
> consumed by Excel.
> 
> When I run "tallow -nologo -c LicensingClientShim.dll" I get the
> following exception:
> 
> ===================================================
> Failed to load Assembly: LicensingClientShim.dll
>   System.BadImageFormatException: Could not load file or assembly
> 'file:///c:\temp\tallow\LicensingClientShim.dll' or one of its
> dependencies. The module was expected to contain an assembly manifest.
> File name: 'file:///c:\temp\tallow\LicensingClientShim.dll'
>    at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
> forIntrospection)
>    at System.Reflection.Assembly.InternalLoad(AssemblyName
> assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,
> Boolean forIntrospection)
>    at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile,
> Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm
> hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
>    at System.Reflection.Assembly.LoadFrom(String assemblyFile)
>    at
> Microsoft.Tools.WindowsInstallerXml.Tools.Tallow.TallowMain..ctor(Strin
> g[]
> args)
> 
> Assembly manager loaded from:
> C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
> Running under executable  c:\temp\tallow\tallow.exe
> --- A detailed error log follows.
> 
> === Pre-bind state information ===
> LOG: User = OFFBYZERO\duncan
> LOG: Where-ref bind. Location = c:\temp\tallow\LicensingClientShim.dll
> LOG: Appbase = file:///c:/temp/tallow/
> LOG: Initial PrivatePath = NULL
> Calling assembly : (Unknown).
> ===
> LOG: This bind starts in LoadFrom load context.
> WRN: Native image will not be probed in LoadFrom context. Native image
> will only be probed in default load context, like with
> Assembly.Load().
> LOG: Using application configuration file:
> c:\temp\tallow\tallow.exe.Config
> LOG: Using machine configuration file from
> C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
> LOG: Attempting download of new URL
> file:///c:/temp/tallow/LicensingClientShim.dll.
> ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing
> terminated.
> ===================================================
> 
> If I register the DLL manually, from the same directory (which also
> contains all the WiX executables), it succeeds:
> 
> ===================================================
> DllRegisterServer in LicensingClientShim.dll succeeded.
> ===================================================
> 
> I suspect I'm missing something simple here ... anyone have any
> suggestions?
> 
> Yours,
> Duncan Bayne
> 
> -----------------------------------------------------------------------
> --
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to