troubleshooting Question

Delphi and .manifest files

Avatar of charlesgates22
charlesgates22Flag for United States of America asked on
ASP.NETDelphi
10 Comments2 Solutions3559 ViewsLast Modified:
Hello experts,

I would like some clarifications about the usage of .manifest files in Delphi for Win32 apps.

Our goal is to be able to use COM objects (DLL or OCX files) without requiring their registration on the machine.

My understanding is that providing the right manifest files the app on startup will use the manifest specifications instead looking in the registry. These files don't need to be included in the exe as resource they just need to be in the same folder than the app and the COM files.

I did some experiments and so far I'm not able to achive this goal.
I always get the error class not registered.
I'm including the 2 main ways I'm experimenting the manifest that goes with the main app.
The manifest for the COM dll is provided by the vendor and I didn't modified it.
The 2 manifest files in question are called project2.exe.manifest and xceedzip.dll.manifest
project2.exe.manifest version 1:

<?xml version="1.0" encoding="utf-8" standalone="yes"?> <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
  <assemblyIdentity type="win32" name="project2.exe" version="1.0.0.0" />
  <dependency> 
    <dependentAssembly> 
      <assemblyIdentity type="win32" name="xceedzip.dll" version="6.5.9562.0" /> 
    </dependentAssembly>
  </dependency>
</assembly>

and I tried this version too:
project2.exe.manifest version 2:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
	name="project2.exe"
	version="1.0.0.0"
	type="win32"
	processorArchitecture="x86"/>
  <file name="xceedzip.dll">
    <comClass clsid="{DB797681-40E0-11D2-9BD5-0060082AE372}"/>
  </file>
</assembly>


xceedzip.dll.manifest provided by the vendor:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
          manifestVersion="1.0">
  <file hash="d2e6d584ed47e2382549255264a8e392eadfd52d"
        hashalg="SHA1"
        name="XceedZip.dll">
    <comClass clsid="{DB797690-40E0-11D2-9BD5-0060082AE372}"
              description="XceedZip Control v6.0"
              progid="XceedSoftware.XceedZip"
              threadingModel="Both"
              tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
      <progid>XceedSoftware.XceedZip.5</progid>
    </comClass>
    <comClass clsid="{4C836512-BB70-11D2-A5A7-00105A9C91C6}"
              description="XceedCompression Control v6.0"
              progid="XceedSoftware.XceedCompression"
              threadingModel="Both"
              tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
      <progid>XceedSoftware.XceedCompression.5</progid>
    </comClass>
    <comClass clsid="{AFA9FDF0-B99F-11D4-BFE7-0060082AE372}"
              description="XceedZipItem Object v6.0"
              tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
              </comClass>
    <comClass clsid="{AFA9FDF1-B99F-11D4-BFE7-0060082AE372}"
              description="XceedZipItems Collection v6.0"
              tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
              </comClass>
    <typelib flags="HASDISKIMAGE"
             helpdir=""
             tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}"
             version="5.4"></typelib>
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
                xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity">
        </dsig:Transform>
      </dsig:Transforms>
      <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1">
      </dsig:DigestMethod>
      <dsig:DigestValue>
      ZF/ru7bst9pvdtrEdmnoOW4uTQU=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <comInterfaceExternalProxyStub iid="{4D07FC10-F931-11CE-B001-00AA006884E5}"
                                 name="ICategorizeProperties"
                                 proxyStubClsid32="{4D07FC10-F931-11CE-B001-00AA006884E5}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{8D8BE16D-8C8B-461C-9220-ADB79B5123B2}"
                                 name="IXceedZip"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{DB79768F-40E0-11D2-9BD5-0060082AE372}"
                                 name="IXceedZip__0400"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{A0CECD40-EB84-11D2-A5CD-00105A9C91C6}"
                                 name="IXceedZip__0401"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{31C2DDD0-B692-11D4-BFE3-0060082AE372}"
                                 name="IXceedZip__0402"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{CC6FD600-EE1D-11D4-801A-0060082AE372}"
                                 name="IXceedZip__0403"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{07189400-00F2-11D5-802D-0060082AE372}"
                                 name="IXceedZip__0405"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{BAA1401E-3F5F-47A4-870B-431D602D2488}"
                                 name="IXceedZip__0500"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{7B78FDFA-2139-4FDC-9D81-4D4B9EF79271}"
                                 name="IXceedZip__0501"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{6991A191-8F4D-41CB-BFEA-5F5ED909FBD5}"
                                 name="IXceedZip__0502"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{6CC24AD7-458C-45E6-B63C-8CC268A61EF7}"
                                 name="IXceedZip__0503"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{AAC4831F-8C1F-434E-9F80-7F1B5B0036E0}"
                                 name="IXceedZipItem"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{31C2DDD1-B692-11D4-BFE3-0060082AE372}"
                                 name="IXceedZipItem__0405"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{31C2DDD2-B692-11D4-BFE3-0060082AE372}"
                                 name="IXceedZipItems"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{77243A10-00F3-11D5-802D-0060082AE372}"
                                 name="IXceedCompression"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{4C836511-BB70-11D2-A5A7-00105A9C91C6}"
                                 name="IXceedCompression__0400"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{05D56700-EB90-11D2-A5CD-00105A9C91C6}"
                                 name="IXceedCompression__0401"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
  <comInterfaceExternalProxyStub iid="{99C11080-CD22-11D4-BFFA-0060082AE372}"
                                 name="IXceedCompression__0402"
                                 proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
                                 tlbid="{DB797681-40E0-11D2-9BD5-0060082AE372}">
                                 </comInterfaceExternalProxyStub>
</assembly>

Open in new window

ASKER CERTIFIED SOLUTION
Arthur_Wood

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros