安装时总是显示“$(DllSelfRegisterEx)不能被注册”
编号:QA000866
建立日期: 1999年4月24日 最后修改日期:1999年12月5日
所属类别:
Alan:
Pvb5.0
Pwin98
我用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. 退出记事本,然后保存。
此问题由李海回答。
| |
|
|
| |
|
|