Bugs item #1428573, was opened at 2006-02-09 11:37 Message generated for change (Comment added) made by derekc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1428573&group_id=105970
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: tallow Group: v2.0 >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: gljosh (gljosh) Assigned to: Derek (derekc) Summary: tallow -s crashes Initial Comment: I am using tallow to dump the WIX code for an ActiveX control. When I run tallow -s on the file I get the following: Microsoft (R) Windows Installer Xml Tool version 0.0.0.0 Copyright (C) Microsoft Corporation 2003. All rights reserved. <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> <Fragment> <DirectoryRef Id="TARGETDIR"> <Component Id="component0" DiskId="1" Guid="PUT- GUID-HERE"> <File Id="file0" Name="dwshk32.ocx" src="y:\common\thirdparty\desaware\dwshk32.ocx" />Fail ed to SelfReg: y:\common\thirdparty\desaware\dwshk32.ocx System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'y:\common\thirdparty\desaware\dwshk32.ocx' : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at DllRegisterServer() --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast (Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast (Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Microsoft.Tools.WindowsInstallerXml.Tools.Tallow.Tallo wMain.DynamicPInvoke(String dll, String entryPoint, Type returnType, Type[] parameterTypes, Object[] parameterValues) at Microsoft.Tools.WindowsInstallerXml.Tools.Tallow.Tallo wMain..ctor(String[] args) </Component> </DirectoryRef> </Fragment> </Wix> The OCX in question resides in ClearCase, but other OCX files in the same directory work just fine. If I copy the file to say D:\dwshk32.ocx and run tallow on it at that location, it too works just fine. Unfortunately I need it to work against the ClearCase location so I can script the install generation in as part of our build process. I downloaded the tallow source and took a look. It appears as if it is the call to LoadLibraryEx. If I change the "flags" paramter from 8 to 2, that call works but then the call to DynamicPInvoke fails with the same "Access Denied" message. Help!! ---------------------------------------------------------------------- >Comment By: Derek (derekc) Date: 2006-04-14 19:34 Message: Logged In: YES user_id=518766 Unfortunately, I wasn't able to reproduce the problem listed above. However, I did hit another issue which is faily well understood. I tried running tallow -s dwshk32.ocx and got an error about loading dwspy32.dll. So I ran depends.exe dwshk32.ocx (this is a tool that can determine all the dependencies for a dll file and attempts to load each). This tool found that there are two dependencies for dwshk32.ocx: dwspy32.dll and msjava.dll (and maybe mpr.dll depending upon how you read the output). Perhaps if you have these files next to the dll when you run tallow things will work better. Even if that doesn't work, I'm not sure if there's much else we can do to assist on this issue. Due to the way that tallow re-directs the registry while running DllRegisterServer, its difficult to get a dll with dependencies to work properly. You best bet with these files is probably to use regsvr32 and some sort of capture method and then transfering the keys into wix manually. ---------------------------------------------------------------------- Comment By: gljosh (gljosh) Date: 2006-03-22 11:35 Message: Logged In: YES user_id=1398354 Attached the file. Good luck reproducing it though. Like I said in the original description, I only experience the problem when the file is pointed to in ClearCase. If I copy it local, then I have no problems. However, other .ocxs in the same directory work fine. ---------------------------------------------------------------------- Comment By: Derek (derekc) Date: 2006-03-22 11:02 Message: Logged In: YES user_id=518766 Would it be possible to attach the file which causes the crash to this bug so that someone here can try to reproduce the problem and fix it? ---------------------------------------------------------------------- Comment By: gljosh (gljosh) Date: 2006-03-22 06:17 Message: Logged In: YES user_id=1398354 It is still broken. Here is the output from tallow: Microsoft (R) Windows Installer Xml Tool version 2.0.3719.0 Copyright (C) Microsoft Corporation 2003. All rights reserved. <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> <Fragment> <DirectoryRef Id="TARGETDIR"> <Component Id="component0" DiskId="1" Guid="PUT-GUID- HERE"> <File Id="file0" Name="dwshk32.ocx" src="j:\Common\thirdparty\desaware\dwshk32.ocx" /> tallow.exe : fatal error TLLW0000: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. Stack Trace: at System.Text.StringBuilder.AppendFormat (IFormatProvider provider, String format, Object[] args) at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0, Object arg1) at Microsoft.Tools.WindowsInstallerXml.Tools.Tallow.TallowMain ..ctor(String[] args) at Microsoft.Tools.WindowsInstallerXml.Tools.Tallow.Main (String[] args) ---------------------------------------------------------------------- Comment By: Derek (derekc) Date: 2006-03-21 18:24 Message: Logged In: YES user_id=518766 Is this still broken? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1428573&group_id=105970 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
