NSIS RegFree,Component ...未正确注册... Win10(x64)或Win7(x64)

时间:2017-08-18 14:48:46

标签: vb6 nsis windows-7-x64 ocx regfreecom

我的NSIS脚本文件工作了32位... 在新的(不用于开发)Win7 / Win10(64)上,.OCX文件存在问题。

程序及其支持文件安装在C:\ Program Files(x86)...或D:\ Program Files(x86)中...... 其中包括:Program.exe,Uninstall.exe,.dll,.tlb,.olb,.ocx及其.manifest文件。 我的装置是'RegFree'。 他们的数据文件位于:C:\ Users \ Public ...或D:\ Users \ Public ...

启动程序时,我收到错误消息,新安装在Win7(x64)或Win10(x64)PC上:

组件' RICHTX32.OCX'或其中一个依赖项不是 正确注册:文件丢失或无效

根据程序,这抱怨:MSCOMCT2.OCX,threed32.ocx或RICHTX32.OCX

我在部署环境中运行了Dependency Walker,例如:Win10(64) 对于RICHTX32.ocx。它在左侧面板中创建了一个列表:

SHELL32.DLL OLEDLG.DLL KERNEL32.DLL USER32.DLL 0LE32.DLL ADVAPI32.DLL OLEAUT32.DLL COMDLG32.DLL GD132.DLL

KERNEL32.DLL是右侧面板中第一行带有红色标记项目的第一行家属。

我更新了NSIS脚本以包含KERNEL32.DLL,并将其他支持文件复制到C:\ Program Files(x86)......

我仍然收到错误消息: 组件' RICHTX32.OCX'或其中一个依赖项不是 正确注册:文件丢失或无效

有关如何在RegFree安装中取得成功的任何想法。请?

这就是我开始的方式,没有KERNEL32.DLL。无论有没有,我都会收到错误消息。 - user243281

我希望我能够回答如何准备我的安装工作在Win7(x64)和Win10(x64)上。他们把东西放在正确的文件夹中,但不要运行。

我在WinXP(32)虚拟PC上用VB6创建了这个应用程序。我还在同一个开发环境中编译了NSIS脚本。我相信我的工作已经完成,但我的测试安装是在PC上受污染的。通过发展活动。
--------------我的QueryMgr清单:

?如果清单(XML)但我不接受它,我在每行前面插入了4个空格?

我无法接受QueryMgr Manifest。它是一个XML文件,但不够接近HTML ...?

所有清单文件都安装在安装目录中,例如:C:\ Program Files(x86)\ Clark_Anderson \

我尝试在主发布窗口中粘贴清单文件,但它们是代码......? (与HTML类似的XML文件)

.OCX文件可能是我的VB6开发环境的一部分。可能与我在应用程序中使用的表单控件有关。其中之一,threed32.ocx,是〜第三方?附件?到VB6。

--------------------- NSIS脚本:

!include MUI2.nsh
  ;create a InstallDirectoryRequirements Page vvvvvvv
!include "nsDialogs.nsh"
!include "winmessages.nsh"
!include "logiclib.nsh"
!include "x64.nsh"          ;14jul2013
  ;create a InstallDirectoryRequirements Page ^^^^^^^
;!define MUI_COMPONENTSPAGE_SMALLDESC ;No value
;?!define MUI_UI "myUI.exe" ;Value
;!define MUI_INSTFILESPAGE_COLORS "FFFFFF 000000" ;Two colors

; -------------------------------
; Start


  !define MUI_PRODUCT "QueryMgr"
  !define MUI_FILE "QueryMgr"
  !define MUI_VERSION "2.08"
  !define MUI_BRANDINGTEXT "QueryMgr Ver. 2.08"
  CRCCheck On

 !include "${NSISDIR}\Contrib\Modern UI\System.nsh"

 ;--------------------------------
;General

  Name "QueryMgr ${MUI_VERSION}" 
  OutFile "iQueryMgr.exe"
 ;Default installation folder
;  InstallDir "$LOCALAPPDATA\Clark_Anderson\${MUI_PRODUCT}"
;  InstallDir "C:\Users\Public\Clark_Anderson\${MUI_FILE}"

  !include winver.nsh

;11aug2013  var /GLOBAL DATADIR             ;31jul2013
  var  DATADIR              ;11aug2013

  ShowInstDetails "nevershow"
  ShowUninstDetails "nevershow"
  ;SetComInstallDirectoryRequirementsssor "bzip2"

;?  !define MUI_ICON "icon.ico"
;?  !define MUI_UNICON "icon.ico"
  !define MUI_SPECIALBITMAP "Bitmap.bmp"
 ;--------------------------------
;Folder selection page
;  InstallDir "C:\Users\Public\Clark_Anderson\${MUI_PRODUCT}"

;11aug2013 xxxxx vvvv 
;Function dir_pge_txt_dest
;       !define $MUI_DIRECTORYPAGE_TEXT_DESTINATION "Setup will install ${MUI_PRODUCT} ${MUI_VERSION} in the Following folder. To install in a difFerent folder, click Browse and select another Folder. Click Install to start the installation.  It is imperative to install into the C:\Users\Public\... folder structure! "
;FunctionEnd  
;11aug2013 xxxxx ^^^^ 
;07aug2013 vvvvvvvvvvvv
Function .onVerifyInstDir
    ${If} ${RunningX64}                 
    ${Else}
        StrCpy $DATADIR $INSTDIR
    ${EndIf}                            
FunctionEnd 
;07aug2013 ^^^^^^^^^^^^^ 


;--------------------------------
;Modern UI Configuration

  !define MUI_WELCOMEPAGE  
  !define MUI_LICENSEPAGE
  !define MUI_DIRECTORYPAGE

  !define MUI_ABORTWARNING
  !define MUI_UNINSTALLER
  !define MUI_UNCONFIRMPAGE
  !define MUI_FINISHPAGE 

Function .onInit
  ${If} ${AtLeastWinVista}
    ${If} ${RunningX64}                 
      StrCpy $INSTDIR "$PROGRAMFILES32\Clark_Anderson\${MUI_FILE}"
      ExpandEnvStrings $DATADIR "%PUBLIC%\Clark_Anderson\${MUI_FILE}"   
    ${Else}                             
      ExpandEnvStrings $INSTDIR "%PUBLIC%\Clark_Anderson\${MUI_FILE}"   
      ExpandEnvStrings $DATADIR "%PUBLIC%\Clark_Anderson\${MUI_FILE}"   
    ${EndIf}                            
  ${Else}
    StrCpy $INSTDIR "$PROGRAMFILES\Clark_Anderson\${MUI_FILE}"
    StrCpy $DATADIR "$PROGRAMFILES\Clark_Anderson\${MUI_FILE}"    
  ${EndIf}
FunctionEnd  


 ;--------------------------------
;Pages

  !insertmacro MUI_PAGE_WELCOME
;  !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
  !insertmacro MUI_PAGE_COMPONENTS
  Page custom InstallDirectoryRequirements ;"Important Information About Install Location"      ;create a multi-line edit (text) control

  !insertmacro MUI_PAGE_DIRECTORY
  !insertmacro MUI_PAGE_INSTFILES
  !insertmacro MUI_PAGE_FINISH

  !insertmacro MUI_UNPAGE_WELCOME
  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES
  !insertmacro MUI_UNPAGE_FINISH

  ;create a InstallDirectoryRequirements Page vvvvvvv

    !define InstallDirectoryRequirements_TITLE "Requirements for the ${MUI_PRODUCT} Install Directory"
    !define InstallDirectoryRequirements_SUBTITLE "This is to permit access to ${MUI_PRODUCT} by all PC Users $\r$\nand prevent interference to and from other programs on your PC. " 

var Dialog
Var Label

Function InstallDirectoryRequirements
    !insertmacro MUI_HEADER_TEXT "${InstallDirectoryRequirements_TITLE}" "${InstallDirectoryRequirements_SUBTITLE}"
    nsDialogs::Create 1018
        Pop $Dialog
        ${If} $Dialog == error
            Abort
        ${EndIf}

        Pop $INSTDIR
        ${NSD_CreateLabel} 0 0 100% 20% "Setup will install ${MUI_PRODUCT} ${MUI_VERSION}  in the Following folder: $\r$\n     $INSTDIR $\r$\n"  ;To install in a different folder, on the next page click Browse and select another Folder, then, Click Install to start the installation.  "
        ${NSD_CreateLabel} 0 15% 100% 30% "Setup will install ${MUI_PRODUCT} Sample Data  in the Following folder and its subfolders: $\r$\n     $DATADIR $\r$\n"  ;To install in a different folder, on the next page click Browse and select another Folder, then, Click Install to start the installation.  "  ;31jul2013
        Pop $Label
;       ${NSD_AddStyle} $Label ${SS_CENTER}

        ${NSD_CreateLabel} 0 30% 100% 40% "The ...\Clark_Anderson  subfolder identifies the source of the program.$\r$\nThe ...\${MUI_PRODUCT} subfolder is unique to this program.$\r$\n$\r$\nEverything needed by ${MUI_PRODUCT} is stored in this ..\${MUI_PRODUCT} subfolder and its subfolders.$\r$\n$\r$\nThis 'Everything needed' is achieved by including manifest files (reg-free COM),$\r$\n thus, refraining from use of the PC Registry."
        Pop $Label
;       ${NSD_AddStyle} $Label ${SS_CENTER}

  ${If} ${AtLeastWinVista}
    ${If} ${RunningX64}     ; 03aug2013 vvvv
        ${NSD_CreateLabel} 0 80% 100% 40% "It is imperative to install into the C:\Program Files (x86)\... folder structure! "
        Pop $Label
    ${Else}                 ; 03aug2013 ^^^^
        ${NSD_CreateLabel} 0 80% 100% 40% "It is imperative to install into the C:\Users\Public\... folder structure! "
        Pop $Label
    ${EndIf}                    ; 03aug2013
;       ${NSD_AddStyle} $Label ${SS_CENTER}
  ${EndIf}
  ${If} ${RunningX64}       ; 14jul2013 vvvv
        ${NSD_CreateLabel} 0 90% 100% 40% " 64 bit windows, tested."
        Pop $Label
  ${Else}
        ${NSD_CreateLabel} 0 90% 100% 40% " 32 bit windows, well tested."
        Pop $Label
  ${EndIf}                  ; 14jul2013 ^^^^

    nsDialogs::Show
FunctionEnd

;Section ""
;SectionEnd  
  ;create a InstallDirectoryRequirements Page ^^^^^^^

;--------------------------------
;Language

  !insertmacro MUI_LANGUAGE "English"


;-------------------------------- 
;Modern UI System

;?  !insertmacro MUI_SYSTEM 


;--------------------------------
;Data

;  LicenseData "Lees_mij.txt"

;-------------------------------- 
;Installer Sections  
InstType "Compact"   
InstType "Typical"

;Add files
Section "Program Files"
  SectionIn 1 2
  SetOutPath "$INSTDIR"

  File "c:\Devlpmnt\LANG\VB6\QueryMgr\QueryMgr.exe"
SectionEnd

Section "System Files - WinSysDir"
  SectionIn 1 2
  SetOutPath "$INSTDIR"
  File "C:\WINDOWS\system32\MSVBVM60.dll"
  File "c:\Program Files\Microsoft Visual Studio\VB98\VB6.OLB"
  File "C:\WINDOWS\system32\stdole2.tlb"
  File "c:\Program Files\Microsoft Office\Office\MSACC9.OLB"
  File "C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll"
  File "c:\Program Files\Microsoft Visual Studio\VB98\VB6EXT.OLB"
  File "C:\WINDOWS\system32\msstdfmt.dll"
  File "C:\WINDOWS\system32\COMDLG32.OCX"
  File "C:\WINDOWS\system32\RICHTX32.OCX"

;18aug2017  File "C:\WINDOWS\system32\kernel32.dll"   ; 12aug2017

    File "c:\Devlpmnt\LANG\VB6\QueryMgr\Manifest\QueryMgr.exe.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\MSVBVM60.dll.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\VB6.OLB.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\stdole2.tlb.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\MSACC9.OLB.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\dao360.dll.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\VB6EXT.OLB.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\msstdfmt.dll.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\COMDLG32.OCX.manifest"
    File "c:\Devlpmnt\LANG\VB6\_dllManifest\RICHTX32.OCX.manifest"

; 12aug2017    File "c:\Devlpmnt\LANG\VB6\_dllManifest\kernel32.dll.manifest"


SectionEnd

Section "Sample Data Files (Optional: Recommended for starting)"
  SectionIn 2
 SetOutPath "$DATADIR\DataBases"
  File "c:\Devlpmnt\LANG\VB6\QueryMgr\Databases\ASQLSela2k.mdb"
  File "c:\Devlpmnt\LANG\VB6\QueryMgr\Databases\ASQLJoi22k.mdb"
  File "c:\Devlpmnt\LANG\VB6\QueryMgr\Databases\ASQLJoi3.mdb"
  File "c:\Devlpmnt\LANG\VB6\QueryMgr\Databases\ASQLFcn42k.mdb"
  File "c:\Devlpmnt\LANG\VB6\QueryMgr\Databases\ASQLUni62k.mdb"
  File "c:\Devlpmnt\LANG\VB6\QueryMgr\Databases\LookUp.mdb"
SectionEnd

;Installation info
Section "install"
  SectionIn 1 2

;create desktop shortcut
;  CreateShortCut "$DESKTOP\${MUI_PRODUCT}.lnk" "$INSTDIR\${MUI_FILE}.exe" ""
  CreateShortCut "$DESKTOP\${MUI_FILE}.lnk" "$INSTDIR\${MUI_FILE}.exe" ""

;create start-menu items
  CreateDirectory "$SMPROGRAMS\${MUI_PRODUCT}"
  CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
  CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\${MUI_PRODUCT}.lnk" "$INSTDIR\${MUI_FILE}.exe" "" "$INSTDIR\${MUI_FILE}.exe" 0

;write uninstall information to the registry
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" "DisplayName" "${MUI_PRODUCT} {remove only}"
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" "UninstallString" "$INSTDIR\Uninstall.exe"

  WriteUninstaller "$INSTDIR\Uninstall.exe"

SectionEnd

;--------------------------------    
;Uninstaller Section  
Section "Uninstall"
;12aug2013  variable $DATADIR values not saved for this section vvvv
    ${If} ${RunningX64}                 
        ExpandEnvStrings $DATADIR "%PUBLIC%\Clark_Anderson\${MUI_FILE}" 
    ${Else}
        StrCpy $DATADIR $INSTDIR
    ${EndIf}                            
;12aug2013  variable $DATADIR values not saved for this section ^^^^

;Delete Files 
  Delete "$INSTDIR\*.*"                     ;12aug2013
  Delete "$DATADIR\Reports\Templates\*.*"   ;12aug2013
  Delete "$DATADIR\Reports\*.*"             ;12aug2013
  Delete "$DATADIR\DataBases\*.*"           ;12aug2013
  Delete "$DATADIR\*.*"                     ;12aug2013

;Remove the installation directory
;13aug2013 +vvvv
  RMDir $INSTDIR
  RMDir $DATADIR\Reports\Templates
  RMDir $DATADIR\Reports
  RMDir $DATADIR\DataBases
  RMDir $DATADIR
;13aug2013 +^^^^

;Delete Start Menu Shortcuts
  Delete "$DESKTOP\${MUI_PRODUCT}.lnk"
  Delete "$SMPROGRAMS\${MUI_PRODUCT}\*.*"
  RmDir  "$SMPROGRAMS\${MUI_PRODUCT}"

;Delete Uninstaller And Unistall Registry Entries
  DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${MUI_PRODUCT}"
  DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}"  

SectionEnd
;--------------------------------    
;MessageBox Section


;Function that calls a messagebox when installation finished correctly
Function .onInstSuccess
  MessageBox MB_OK "You have successfully installed ${MUI_BRANDINGTEXT}. Use the desktop icon to start the program."
FunctionEnd


Function un.onUninstSuccess
  MessageBox MB_OK "You have successfully uninstalled ${MUI_BRANDINGTEXT}."
FunctionEnd

;!verbose 0
;!error ""
;eof

(我希望在我编辑插入4个空格后,这个NSIS脚本是干净的代码)

Simplest is Query manager

===============================
RICHTX32.OCX似乎需要kernel32.dll

C:> dir / s kernel32.dll
 驱动器C中的卷是OS
 卷序列号为48C7-50D7

C:\ Windows \ System32

目录

05/30/2017 01:39 PM 708,712 kernel32.dll
               1个文件708,712字节

C:\ Windows \ SysWOW64目录

05/30/2017 01:39 PM 599,576 kernel32.dll
               1个文件599,576字节

目录C:\ Windows \ WinSxS \ amd64_microsoft-windows-kernel32_31bf3856ad364e35_10.0.15063.0_none_a4d1be7a8f1a4216

05/30/2017 01:45 PM 19,984 kernel32.dll
               1个文件19,984字节

目录C:\ Windows \ WinSxS \ amd64_microsoft-windows-kernel32_31bf3856ad364e35_10.0.15063.296_none_289f5225bcc26659

05/30/2017 01:39 PM 708,712 kernel32.dll
               1个文件708,712字节

目录C:\ Windows \ WinSxS \ wow64_microsoft-windows-kernel32_31bf3856ad364e35_10.0.15063.0_none_af2668ccc37b0411

05/30/2017 01:55 PM 7,072 kernel32.dll
               1个文件7,072个字节

目录C:\ Windows \ WinSxS \ wow64_microsoft-windows-kernel32_31bf3856ad364e35_10.0.15063.296_none_32f3fc77f1232854

05/30/2017 01:39 PM 599,576 kernel32.dll
               1个文件599,576字节

安装PC(win10(64))有6个不同的kernel32.dll副本。我的应用程序应该如何知道使用哪一个?

我的虚拟开发PC(WinXT(32))有两个richtx32.ocx副本:
C:> dir / s RICHTX32.OCX
 驱动器C中的卷没有标签  卷序列号为F432-F929

C:\ Program Files目录\ Clark_Anderson \ QueryMgr

03/09/2004 12:00 AM 212,240 richtx32.ocx
               1个文件212,240字节

C:\ WINDOWS \ system32

目录

03/09/2004 12:00 AM 212,240 RICHTX32.OCX
               1个文件212,240字节

我的污点'主机开发PC Win7(x64)具有richtx32.ocx的这些副本:
C:> dir / s RICHTX32.OCX
 驱动器C中的卷是OS
 卷序列号为70F2-883E

C:\ Program Files目录(x86)\ Clark_Anderson \ QueryMgr

03/09/2004 12:00 AM 212,240 richtx32.ocx
               1个文件212,240字节

C:\ Program Files目录(x86)\ Microsoft Visual Studio \ Common \ Tools \ VB \ Controls \ Controls_Backup

03/09/2004 12:00 AM 212,240 RICHTX32.OCX
               1个文件212,240字节

C:\ Windows \ SysWOW64目录

02/16/2010 03:22 PM 218,432 richtx32.Ocx
               1个文件218,432字节

不成功的安装PC Win10(x64)只有NSIS脚本安装的副本,例如:
C:> dir / s richtx32.ocx
 驱动器C中的卷是OS
 卷序列号为48C7-50D7

C:\ Program Files目录(x86)\ Clark_Anderson \ QueryMgr

03/09/2004 12:00 AM 212,240 RICHTX32.OCX
               1个文件212,240字节

有谁知道这个的重要性?我使用无reg安装的努力是为了防止我的应用程序干扰其他应用程序并允许干净卸载,同样不会干扰其他应用程序和数据。

我创建了一个测试应用程序,请求,One Form及其一个RichTextbox控件。其表现在下面的一条评论中:
NSIS脚本是我在另一台PC上创建应用程序安装的方式。

我对Windows 10的经验很少。我确实找到了事件查看器。我确实在Windows日志/系统中看到了一些错误:DistributedCOM eventID 10016但是自从我安装了zRichTx应用程序以来只发生了一次(2次)(不是我尝试运行它的几次)

以同样的方式我发现了一个错误:Windows日志/应用程序:应用程序错误EventID 1000任务类别(100),但它没有响应卸载,安装和几次尝试运行所有以相同的错误消息:组件RICHTX32.ocx未正确注册...

我对在(x64)Windows 10和Windows 7上安装我的VB6应用程序的部分内容感到头疼。这就是为什么我来向专家寻求帮助。

=================
Begin Activation Context Generation.
Input Parameter:
  Flags = 0
  ProcessorArchitecture = Wow32
  CultureFallBacks = en-US;en
  ManifestPath = C:\Program Files (x86)\Clark_Anderson\zRichTx\zRichTx.exe.Manifest
  AssemblyDirectory = C:\Program Files (x86)\Clark_Anderson\zRichTx\
  Application Config File = 
-----------------
INFO: Parsing Manifest File C:\Program Files (x86)\Clark_Anderson\zRichTx\zRichTx.exe.Manifest.
  INFO: Manifest Definition Identity is zRichTx.exe,type="win32",version="2.4.0.14".
  INFO: Reference: stdole2.tlb,type="win32",version="5.1.2600.5512"
  INFO: Reference: RICHTX32.OCX,type="win32",version="6.1.97.82"
INFO: Resolving reference stdole2.tlb,type="win32",version="5.1.2600.5512".
  INFO: Resolving reference for ProcessorArchitecture stdole2.tlb,type="win32",version="5.1.2600.5512".
    INFO: Resolving reference for culture Neutral.
      INFO: Applying Binding Policy.
        INFO: No binding policy redirect found.
      INFO: Begin assembly probing.
        INFO: Did not find the assembly in WinSxS.
        INFO: Attempt to probe manifest at C:\Program Files (x86)\Clark_Anderson\zRichTx\stdole2.tlb.DLL.
        INFO: Attempt to probe manifest at C:\Program Files (x86)\Clark_Anderson\zRichTx\stdole2.tlb.MANIFEST.
        INFO: Manifest found at C:\Program Files (x86)\Clark_Anderson\zRichTx\stdole2.tlb.MANIFEST.
      INFO: End assembly probing.
INFO: Resolving reference stdole2.tlb.mui,language="*",type="win32",version="5.1.2600.5512".
  INFO: Resolving reference for ProcessorArchitecture stdole2.tlb.mui,language="*",type="win32",version="5.1.2600.5512".
    INFO: Resolving reference for culture en-US.
      INFO: Applying Binding Policy.
        INFO: No binding policy redirect found.
      INFO: Begin assembly probing.
        INFO: Did not find the assembly in WinSxS.
        INFO: Did not find manifest for culture en-US.
      INFO: End assembly probing.
    INFO: Resolving reference for culture en.
      INFO: Applying Binding Policy.
        INFO: No binding policy redirect found.
      INFO: Begin assembly probing.
        INFO: Did not find the assembly in WinSxS.
        INFO: Did not find manifest for culture en.
      INFO: End assembly probing.
INFO: Resolving reference RICHTX32.OCX,type="win32",version="6.1.97.82".
  INFO: Resolving reference for ProcessorArchitecture RICHTX32.OCX,type="win32",version="6.1.97.82".
    INFO: Resolving reference for culture Neutral.
      INFO: Applying Binding Policy.
        INFO: No binding policy redirect found.
      INFO: Begin assembly probing.
        INFO: Did not find the assembly in WinSxS.
        INFO: Attempt to probe manifest at C:\Program Files (x86)\Clark_Anderson\zRichTx\RICHTX32.OCX.DLL.
        INFO: Attempt to probe manifest at C:\Program Files (x86)\Clark_Anderson\zRichTx\RICHTX32.OCX.MANIFEST.
        INFO: Manifest found at C:\Program Files (x86)\Clark_Anderson\zRichTx\RICHTX32.OCX.MANIFEST.
      INFO: End assembly probing.
INFO: Resolving reference RICHTX32.OCX.mui,language="*",type="win32",version="6.1.97.82".
  INFO: Resolving reference for ProcessorArchitecture RICHTX32.OCX.mui,language="*",type="win32",version="6.1.97.82".
    INFO: Resolving reference for culture en-US.
      INFO: Applying Binding Policy.
        INFO: No binding policy redirect found.
      INFO: Begin assembly probing.
        INFO: Did not find the assembly in WinSxS.
        INFO: Did not find manifest for culture en-US.
      INFO: End assembly probing.
    INFO: Resolving reference for culture en.
      INFO: Applying Binding Policy.
        INFO: No binding policy redirect found.
      INFO: Begin assembly probing.
        INFO: Did not find the assembly in WinSxS.
        INFO: Did not find manifest for culture en.
      INFO: End assembly probing.
INFO: Parsing Manifest File C:\Program Files (x86)\Clark_Anderson\zRichTx\stdole2.tlb.MANIFEST.
  INFO: Manifest Definition Identity is stdole2.tlb,type="win32",version="5.1.2600.5512".
INFO: Parsing Manifest File C:\Program Files (x86)\Clark_Anderson\zRichTx\RICHTX32.OCX.MANIFEST.
  INFO: Manifest Definition Identity is RICHTX32.OCX,type="win32",version="6.1.97.82".
INFO: Activation Context generation succeeded.
End Activation Context Generation.

你是对的。我找到了如何用admin打开cmd提示符。这些都是结果。这对你有意义吗?

你是对的。我找到了如何用admin打开cmd提示符。以上是结果。这对你有意义吗?

我的时间不多了。我的Windows10(x64)测试PC很快就会消失。在我的Windows7(x64)测试PC上,SXStrace解析文件是空的?如果我以管理员身份登录zRichtx程序有效吗?!

我在Windows10(x64)测试PC上创建了管理员登录...运行zRichtx会得到相同的错误消息,但是SXStrace再次出现空?

1 个答案:

答案 0 :(得分:0)

将NSIS排除在等式之外,与手头的问题无关。

我认为解决问题的最佳方法是让您自己进行诊断。

启动一个新的VB项目,只需添加有问题的OCX控件和所需的最少代码量,即可在出现问题的机器上重现问题。然后look at the event log and run SxSTrace试图弄清楚为什么它找不到组件......