Windows Installer错误1001.找不到路径的一部分 [英] Windows Installer Error 1001. Could not find a part of the path
问题描述
您好,
我的项目包含一个C ++ DLL和几个C#程序集,其中一个是CCW。 CCW有一个安装程序类来注册/取消注册相应的TLB文件。
I have a project that contains one C++ DLL and several C# assemblies one of which is a CCW. The CCW has an installer class to register/unregister the respective TLB file.
我还有一个安装程序DLL,用于注册/取消注册两个COM DLL在安装/卸载过程中。
I also have an installer DLL that registers/unregisters two COM DLLs during the install/uninstall process.
我的安装程序包将RemovePreviousVersions设置为True。当我在以前没有安装包时安装包时,一切都很完美。但是,如果我更新软件包并为其提供新版本,则新安装将启动并删除旧安装,安装新软件,注册我的TLB文件,然后出现此错误:
My setup package has the RemovePreviousVersions set to True. Everything works perfectly when I install the package when it has not been installed before. However, If I update the package and give it a new version, the new install starts and removes the old install, installs the new, registers my TLB file and then I get this error:
错误1001.无法找到路径的一部分'C:\ WINDOWS \assembly\GAC_MSIL\PRISM .CCW \1.0.1000.0__20c35f8edb870d93 \PRISM.CCW.InstallState'。
上面的错误是从安装后在%temp%文件夹中找到的日志文件。当我点击确定时,安装回滚。
The error above was copied from the log file found in the %temp% folder after the install. When I click on OK, the install rolls back.
当我查看c:\windows \ assembly时我发现的是什么在我运行安装之前,我的程序集列在那里。当弹出错误时,我刷新文件夹并注意到我的程序集已经消失。回滚完成后,我的程序集将被恢复。
What I found is when I look in the c:\windows\assembly before I run the install, my assemblies are listed there. When the error pops up, I refresh the folder and noticed that my assemblies are gone. Once the rollback is complete, my assemblies are restored.
我搜索并搜索了为什么会发生这种情况以及如何解决它,但我找不到任何东西。如果有人有任何想法或能指出我正确的方向,那将非常感激。谢谢。
I've searched and searched as to why this happens and how I can remedy it, but I just can't find anything. If anyone has any ideas or can point me in the right direction, that would be greatly appreciated. Thank you.
推荐答案
我发现另外一条有趣的信息。使用"控制面板"中的"添加/删除程序"删除程序包时,上述错误实际显示在卸载结束时,但是,它不会影响删除,即成功删除安装。我通过使用FILEMON实用程序看到了这一点。当我安装较新版本的软件包时,只会弹出此错误,并将原始帖子中提到的RemovePreviousVersions设置为True。
One other piece of information I discovered that's interesting. The error above actually shows up at the end of the uninstall when removing the package using the Add/Remove Programs from Control Panel, however, it does not impact the removal, i.e., successfully removes installation. I saw this by using the FILEMON utility. This error only pops up when I install a newer version of the package which has the RemovePreviousVersions set to True as mentioned in the original post.
这篇关于Windows Installer错误1001.找不到路径的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!