找了好久才找到的原因:
During the installation process I got an exception saying “Could not find C:/Program Files/MyApp/MyAction.Installstate”
The problem is that the MSI infrastructure is looking for the installation state file which is usually created during the Install phase.
If the custom action does not participate in the Install phase, no file is created.
The solution is to add the custom action to both the Install and the Commit phases, although it does nothing during the install phase.
本文解决了一个在安装过程中遇到的问题,即出现找不到 C:/Program Files/MyApp/MyAction 安装状态的异常提示。原因是 MSI 架构在安装阶段未能创建所需的安装状态文件。解决方案是将自定义操作同时添加到安装和提交阶段,即使它在安装阶段不执行任何操作。
3653

被折叠的 条评论
为什么被折叠?



