Registry-free com Registration

Source: Internet
Author: User
Registry-free com Registration

InstallShield 2008

With reg-free COM, com data is written to an application manifest file that is stored in the application folder. the manifest file is an XML file that contains information about an application and the libraries that are associated with it. note that the reg-free com manifest file, the executable file, and the com libraries shoshould all be installed to the same folder on the target machine.


Benefits of reg-free com

Reg-free COM has several advantages over traditional COM. for example, with reg-free com, the component is defined within the scope of the application itself. even if other applications that use the same COM component or a different version of it require that it be registered, it will not interfere with this application.

Problems may occur with traditional com registration if multiple versions of shared libraries exist on a target system. for example, an installation may overwrite a new version of a shared library with an older version, or a new version might not be backwardly compatible with older versions. this may cause applications that require features of a specific version to crash. these types of situations are commonly knownDLL hell. With reg-free COM, you can avoid these problems because other applications cannot access your application's COM component.

In addition, reg-free com streamlines the upgrade and uninstallation processes. For an upgrade, simply replace the application folder. For an uninstallation, simply remove that folder.

[[[

Registry-free COM is a method for deploying COM components such that they do not need to be registered on the target machine. This has two main benefits for openviz participant application deployment:

    1. Simplified deployment.Applications can now be deployed simply by copying a folder of files to the machine. MSI, batch or manual registering of the COM DLLs is not needed.
    2. CED permissions.Because the registry is not touched, applications can be installed by a user without Adminstrator or power user permissions. this has long been a problem with com-based applications, as well as openviz participant. net Applications which depend on the com DLLs.

Registry-free com may also be referred to by the terms "isolated application", "side-by-side assemblies" or "sxs ".


Limitations of reg-free com

Reg-free COM is not appropriate for some solutions. Several limitations exist:

    • reg-free com works on only Windows XP or later.
    • A component is not suitable for reg-free com if it is a system component or part of the operating system. in addition, it is not suitable if it is a data access component such as Microsoft Data Access Components (MDAC ). these types of components shocould not be isolated. some of these components, such as MDAC, can be removed in an installation as a redistributable.
    • a com component can be isolated only once per application. consider grouping COM components in a single class library as a workaround to this limitation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.