安装时总是显示“$(DllSelfRegisterEx)不能被注册” 的解决方法

来源:互联网 发布:大数据资格认证doop 编辑:程序博客网 时间:2024/06/05 11:54
VB50安装向导生成的安装程序,安装到最后时总是显示“文件c:\windows\system\$(DllSelfRegisterEx)不能被注册,由于它未找到。”的提示信息后安装失败,请问为何原因? 
----------
 Bug!这是VB5、6的一个Bug。 
    如果运行Visual Basic 5.0生成的安装盘,会产生下面的错误: 
     The file '\$(DLLSelfRegisterEx)' could not be registered because it was not found. 
    如果运行Visual Basic 6.0生成的安装盘,会产生下面的错误: 
     The file '\Msftqws.pdw\$(DllSelfRegisterEx)' could not be registered because it was not found. 
    这个问题发生在分发Microsoft Calendar control(MSCal.ocx)时。MSCal.dep文件中的"Register="行被错误地设置成 $(DLLSelfRegisterEx)了。 
    解决办法: 
    1. 使用记事本打开Setup.lst文件。Setup.lst文件是Setup Wizard或PDW制作安装盘时生成的。 
    2. 查找$(DLLSelfRegisterEx)。你将看到 $(DLLSelfRegisterEx)在MSCal.ocx的一行中。 
    3. 修改 $(DLLSelfRegisterEx) 为$(DLLSelfRegister)。 
    4. 关闭记事本并保存文件。 
    5.运行Setup.exe。 
     
    如果希望今后生成的setup.exe不出错误,可以这样做: 
    1. 使用记事本打开MSCal.dep文件。你将找到MSCal.dep在MSCal.ocx所在的目录,通常是Windows 95/98的Windows\System或Windows NT的Winnt\System32。 
    2. 查找$(DLLSelfRegisterEx)。你将可以看到$(DLLSelfRegisterEx)在"Register="一行。 
    3. 修改 $(DLLSelfRegisterEx) 为$(DLLSelfRegister)。 
    4. 退出记事本,然后保存
0 0