错误1001.找不到文件'C\Windows\Temp \ keylayout.InstallState [英] Error 1001. Could not find file 'C\Windows\Temp\keylayout.InstallState

查看:281
本文介绍了错误1001.找不到文件'C\Windows\Temp \ keylayout.InstallState的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#文本编辑器应用程序,以前运行正常,但我尝试将此应用程序所需的dotnet框架(dotnet3.5)更改为较低版本(dotnet2.0),现在应用程序显示此问题错误1001.在安装结束之前找不到文件'C\Windows\Temp\keylayout.InstallState 。当我单击此错误消息的ok按钮时,安装将进入回滚操作。这可能是无意中键入类的代码或自定义操作的东西,因为我试图在安装过程中使用自定义操作来运行dotnet3.5引导程序(来自Microsoft)。欢迎任何形式的帮助。谢谢。

I have a C# text editor application which used to run okay but i tried changing the dotnet framework required by this application(dotnet3.5) to a lower version(dotnet2.0) and now the application shows this problem Error 1001. Could not find file 'C\Windows\Temp\keylayout.InstallState just before installation ends. when i click on the ok button of this error message, the installation goes to rollback action. Could this be unintended typing into a the code of a class or something about custom action because i tried to used custom actions to run a dotnet3.5 bootstrapper(from Microsoft) during installation. Please any kind of help is welcomed. Thank you.

推荐答案

我会这样做:



0)干净利落,全力以赴解决方案。如果这不能解决它...



1)删除你的安装项目,并重新创建它。
I would do this:

0) Do a Clean, Build All on the solution. If that doesn't fix it...

1) Deleting your setup project, and recreate it.


问题是MSI正在寻找通常在安装阶段创建的安装状态文件。我相信你在安装阶段没有做任何事情,而是在提交或后期阶段需要所需的文件,所以没有创建文件。



解决方案是添加虽然在安装阶段没有执行任何操作,但安装和其他所需的后续阶段的自定义操作都是您在执行操作时所需的后续阶段。
The problem is that the MSI is looking for the installation state file which is usually created during the Install phase. I believe you are not doing anything in the Install phase instead need the required files in the commit or later stage, so no file is created.

The solution is to add the custom action to both the Install and the other required later stages where you are performing operation like in Commit phase, although it does nothing during the install phase.


这篇关于错误1001.找不到文件'C\Windows\Temp \ keylayout.InstallState的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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