Sample Manifest File for a Reg-Free COM File

InstallShield 2024

Project: This information applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module

The contents of the manifest file include the name of the executable file, the file names of the libraries that are associated with the executable files, and the COM information. For the following sample manifest file, the name of the executable file is Sample.exe, and the name of the library is SampleCircle.dll.

<?xml version="1.0" encoding="utf-8"?>

<assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <assemblyIdentity type="win32" name="Sample.exe" version="1.0.0.10"/>

    <file asmv2:size="24576" name="SampleCircle.dll">

        <hash xmlns="urn:schemas-microsoft-com:asm.v2"> ... </hash>

        <typelib flags="HASDISKIMAGE" helpdir="" resourceid="0" tlbid="{6A2304BC-F200-49B8-955E-0ACDE272B6E0}" version="1.0"/>

        <comClass clsid="{C621F4D3-8463-4B0C-9BEC-84D979C41385}" description="SampleCircle.Server" progid="SampleCircle.Server" threadingModel="Apartment" tlbid="{6A2304BC-F200-49B8-955E-0ACDE272B6E0}"/>

    </file>

</assembly>

On a Windows XP system, the presence of the manifest file enables the application to use methods from the COM library without the libraries having been registered in the target system’s registry. Windows XP uses the COM libraries in the current directory before using any other versions of the libraries that may be registered on the target system.