manifest - Is it possible to use registration-free COM with HTA applications? -


Since HTA applications are hosted in MSHTA.exe, how does one provide a manifest? Besides, can I possibly break other HTA applications providing an MSHTA.exe.manifest?

Vista +, MSHTA. XE has an embedded manifest, which takes priority over the external manifest, so your suggestion is not an option.

In XP / 2003, yes, your suggestion will work, though it will be a bad form, as in order to modify system Bayern's behavior, leave files in System 32 (especially make sure that your Any object objects kept by you are the only one to take care of).

The appropriate solution available on Win2003 and above, to use the object to instantify your object in terms of clear object.

For example:

  var actCtx = WScript.CreateObject ("Microsoft.Windows.ActCtx"); ActCtx.Manifest = "myregfree.manifest"; Var obj = actCtx.CreateObject ("MyObj"); Perhaps, if this is to work on XP, then the path you can use is a combination of both solutions. 


Comments