【问题标题】:VB6 RegFree Com one click deploymentVB6 RegFree Com 一键部署
【发布时间】:2015-12-05 14:57:47
【问题描述】:

我做了一个vb6 reg free com一键部署项目 我在发布和更改内容后添加了清单文件以使用我的 vb 名称 Green.exe 而不是 vb.net 项目名称。还将属性更改为内容并复制(如果更新)。当我在客户端上安装它时,vb6 程序无法启动cause of not registered ocx. it means reg free com is not right。 我们创建了许多主 vb6 程序将使用的 ocx。这是我创建的清单文件:

<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1                 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1">
      <asmv1:assemblyIdentity name="Green.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
  <application />

  <trustInfo>
    <security>
      <applicationRequestMinimum>
        <PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
        <defaultAssemblyRequest permissionSetReference="Custom" />
      </applicationRequestMinimum>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <!--
          UAC Manifest Options
          If you want to change the Windows User Account Control level     replace the 
          requestedExecutionLevel node with one of the following.

        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
        <requestedExecutionLevel  level="requireAdministrator"     uiAccess="false" />
        <requestedExecutionLevel  level="highestAvailable"     uiAccess="false" />

         If you want to utilize File and Registry Virtualization for     backward 
         compatibility then delete the requestedExecutionLevel node.
    -->
        <requestedExecutionLevel level="asInvoker" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentOS>
      <osVersionInfo>
        <os majorVersion="10" minorVersion="1" buildNumber="2600"     servicePackMajor="0" />
      </osVersionInfo>
    </dependentOS>
  </dependency>
  <dependency>
    <dependentAssembly dependencyType="preRequisite"     allowDelayedBinding="true">
      <assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime"     version="4.0.30319.0" />
    </dependentAssembly>
  </dependency>


  <file name="Green.exe" size="7184384">
    <hash>
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-    com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod     Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
      <dsig:DigestValue>rqeYDzIVrIY9m/pVlyFdJ6tFpAc=</dsig:DigestValue>
    </hash>
  </file>
  <file name="Green.ReportControl.v15.0.1.ocx" size="1370104">
    <hash>
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-    com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod     Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
      <dsig:DigestValue>DR4oqg8TvRGA7901DvJ8kwQZt48=</dsig:DigestValue>
    </hash>
  </file>
  <file name="GreenACITrans.ocx" size="937984">
    <hash>
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-    com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod     Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
      <dsig:DigestValue>LbPTQBKEGlaE2nD02Lle+jPz1gU=</dsig:DigestValue>
    </hash>
  </file>
  <file name="GreenBackUpRestore.ocx" size="217088">
    <hash>
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-    com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod     Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
      <dsig:DigestValue>EALTeLxgFCOKv256oJyr7T0eRg8=</dsig:DigestValue>
    </hash>
  </file>

</asmv1:assembly>

已编辑:我已修复。有一个组件无法注册,我不知道。我把它放在安装包中,现在它可以工作了。 使用此链接步骤: https://msdn.microsoft.com/en-US/library/aa697429(v=vs.80).aspx

【问题讨论】:

  • 它有很多不需要的东西,但没有足够的东西需要在那里。 必需的 &lt;comClass&gt; 元素都不存在。它的文档are here
  • Vb.net 为我的项目制作了这个清单
  • 对于 VB6 无注册清单,您需要像 UMMM 这样的工具。你不能像你尝试的那样用 VB.Net “破解”它。
  • 谢谢大家。这不是黑客。它来自微软链接:msdn.microsoft.com/en-US/library/aa697429(v=vs.80).aspx。我的一个 ocx 来自上一个开发人员。我不知道这会造成问题,不应该出现在清单中。现在它就像我放置的链接所说的那样工作!
  • 请您将您的修复添加为答案,以便很明显这个问题有解决方案,而不是对原始问题的更新

标签: vb.net vb6


【解决方案1】:

谢谢各位。这不是黑客。它来自微软链接: here 。我的一个 ocx 来自上一个开发人员。我不知道这会造成问题,不应该出现在清单中。现在它就像我放置的链接所说的那样工作!

【讨论】:

    猜你喜欢
    • 2012-01-30
    • 2011-02-11
    • 1970-01-01
    • 2017-06-04
    • 1970-01-01
    • 2014-03-11
    • 1970-01-01
    • 2018-09-13
    • 1970-01-01
    相关资源
    最近更新 更多