Since HTA applications are hosted within MSHTA.exe how does one provide a manifest? Plus I assume providing a MSHTA.exe.manifest could potentially break other HTA apps?
相关问题
- How do I restart a COM+ application on a remote se
- Java COM bridge
- Powershell - add catch to pick up if there are no
- Why is my COM factory never released during the pr
- Any way to resolve C4772 errors without having to
相关文章
- Signing an F# Assembly (Strong name component)
- Python instrument drivers
- Default arguments in JAR-manifest
- How To Programmatically Enable/Disable 'Displa
- Reading data from Excel in Haskell
- AppCache Manifest Error
- COM+ object activation in a different partition
- Permission Denial: broadcasting Intent android.pro
Edit: My answer is wrong, but I'll leave it here to avoid any similar wrong answers :)
If you question is can you access a COM object without registering it on the machine, then I think the answer is a tentative yes. However the work you would need to do would be substantial and would mean implementing a lot of the low level code that most development tools provide for you as a matter of course (Delphi, .NET, JAVA). You would need to interface with the dll directly (like you would a normal dll ), query its interfaces and call your methods.
If you have C, C++ knowledge, the way COM is accessed from these languages would give you some pointers.
Sorry I cant be of any more help.
On Vista+, MSHTA.exe has an embedded manifest, which takes priority over external manifests, so your suggestion is not an option.
On XP/2003, yes, your suggestion would work, although it would be bad form, as is dropping files in System32 to modify the behavior of a system binary (especially make sure that any registration you put in the manifest are objects you are the only one to care about).
The proper solution, available on Win2003 and above, is to use the Microsoft.Windows.ActCtx object to instantiate your object given an explicit manifest reference.
For example:
Perhaps, if this must work on XP as well, a path you may take is a combination of both solutions.