Bugs item #1687206, was opened at 2007-03-23 23:46
Message generated for change (Comment added) made by aaronste
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1687206&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Aaron Stebner (aaronste)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tallow throws an exception in DllRegisterServer on Vista

Initial Comment:
Even after the fix for SF bug 1632583, Tallow is having some problems 
extracting self-registration information from DllRegisterServer when it is run 
on Windows Vista.

When running from an elevated cmd prompt, I get an exception like the following:

Failed to SelfReg: <file>
 System.Reflection.TargetInvocationException: Exception has been thrown by the 
target of an invocation. ---> System.IO.FileNotFoundException: The system 
cannot find the file specified. (Exception from HRESULT: 0x80070002)
   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 
Microsoft.Tools.WindowsInstallerXml.Tools.Tallow.TallowMain.DynamicPInvoke(String
 dll, String entryPoint, Type returnType, Type[] parameterTypes, Object[] 
parameterValues)
   at 
Microsoft.Tools.WindowsInstallerXml.Tools.Tallow.TallowMain..ctor(String[] args)

When I run from a normal cmd prompt, I get an exception like the following:

Failed to SelfReg: <file>
 System.Reflection.TargetInvocationException: Exception has been thrown by the 
target of an invocation. ---> System.Runtime.InteropServices.COMException 
(0x8002801C): Error accessing the OLE registry.
   at DllRegisterServer()
   --- End of inner exception stack trace ---
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, 
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo 
culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, 
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo 
culture, Boolean verifyAccess)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags 
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at 
Microsoft.Tools.WindowsInstallerXml.Tools.TallowMain.DynamicPInvoke(String dll, 
String entryPoint, Type returnType, Type[] parameterTypes, Object[] 
parameterValues)
   at Microsoft.Tools.WindowsInstallerXml.Tools.TallowMain..ctor(String[] args)


----------------------------------------------------------------------

>Comment By: Aaron Stebner (aaronste)
Date: 2008-02-14 18:44

Message:
Logged In: YES 
user_id=1751591
Originator: YES

I've learned more about the root cause of this issue and wanted to add it
here so I don't lose track of it.  There is an app-compat bug with the
RegOverridePredefKey on Windows Vista that prevents it from working as
expected for typelib registration when the process is run as a normal user.
 There is a hotfix available for this issue at
http://support.microsoft.com/default.aspx/kb/935200.  We will likely need
to add code to Tallow to try to use the new OaEnablePerUserTLibRegistration
API that is introduced in this hotfix if the API exists on the users
system.  If it doesn't exist, we should try to display more helpful error
information.

----------------------------------------------------------------------

Comment By: Aaron Stebner (aaronste)
Date: 2007-04-10 17:43

Message:
Logged In: YES 
user_id=1751591
Originator: YES

You're right, the issues in Tallow and Heat are nearly identical.  Heat
was based on the same code originally written for Tallow, so the fixes will
likely be similar.  However, the source code for Tallow and Heat is in
different code bases (Tallow is in WiX v2.0 and Heat is in WiX v3.0), so I
created separate bugs to track the issues in each of these tools
independently.

----------------------------------------------------------------------

Comment By: appel (appel__)
Date: 2007-04-10 06:36

Message:
Logged In: YES 
user_id=893425
Originator: NO

I haven't looked at the source of tallow, but I'd guess this is caused by
same problem in heat reported as issue 1632584. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1687206&group_id=105970

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

Reply via email to