VB6 ActiveX exe - 什么是正确的注册顺序? [英] VB6 ActiveX exe - what is the proper registration sequence?

查看:554
本文介绍了VB6 ActiveX exe - 什么是正确的注册顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近更新了一个Visual Basic 6应用程序,它是一个ActiveX exe,运行在Windows XP上。我有几个测试人员为这个应用程序谁收到的exe的副本,并试图运行它。但是,当尝试这样做时,他们收到一条错误消息
意外错误;退出

I have recently updated a Visual Basic 6 application that is an ActiveX exe, running on Windows XP. I have a couple of testers for this application who have received a copy of the exe and are attempting to run it. However, they are getting an error message "Unexpected error;quitting" when trying to do so.

他们的测试和我的测试之间的关键区别是,在我测试的机器上,我有管理员权限,并能够使用

appname.exe / regserver

命令行。

A key difference between their testing and my testing is that on the machines I tested on, I have admin rights and was able to register the application using the
appname.exe /regserver
command line.

阅读 MS支持关于文件注册似乎不清楚:

Reading the details at MS Support about file registration appears unclear:


Visual Basic ActiveX EXE文件注册自己第一次运行EXE。但是,在注册之前不能将EXE用作COM服务器。

Visual Basic ActiveX EXE files register themselves the first time you run the EXE. However, you cannot use the EXE as a COM server until it is registered.

这意味着在第一次使用运行exe应用程序应该正确注册,并且我收到的错误是除了不正确的注册应用程序的迹象吗?或者这意味着应用程序将无法正常工作,直到使用

appname.exe / regserver
明确注册文件
命令行?

So does this mean that after the first time the users run the exe that the application should be correctly registered, and the error I am receiving is sign of something other than an incorrectly registered application? Or does this mean that the application will not work properly until such time as the file is explicitly registered using the
appname.exe /regserver
command line?

nb - 在生产分发期间,软件将使用系统管理服务器发送到客户端PC,这个测试。

nb - during a production distribution, the software would be sent out to client PCs using Systems Management Server, which isn't an option for this testing.

推荐答案

该特定错误表示应用程序尚未运行,并且用户第一次运行它时没有足够的注册的权利。您可以通过两种方式防止此错误,以管理员身份安装并运行应用程序,或在安装程序中明确注册与ActiveX exe相关的所有类型和类信息。

That particular error is indicative of the app not having been run, and the user running it for the first time not having adequate rights for the registration to occur. You can prevent this error in two ways, install as admin and run the app, or in your installer explicitly register all the type and class information associated with the ActiveX exe.

这篇关于VB6 ActiveX exe - 什么是正确的注册顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆