Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Delphi and .manifest files

Avatar of charlesgates22
charlesgates22Flag for United States of America asked on
DelphiASP.NET
10 Comments1 Solution3559 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>
ASKER CERTIFIED SOLUTION
Avatar of Arthur_Wood
Arthur_WoodFlag of United States of America image

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

Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers