Web 安装项目从 VS2008 升级到 VS2010 后删除文件 [英] Web setup project removes files after upgrade from VS2008 to VS2010

查看:23
本文介绍了Web 安装项目从 VS2008 升级到 VS2010 后删除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 VS2008 构建的 Web 安装项目.我已经将我的解决方案转换为 VS2010,现在当我构建我的新安装程序并从 MSI 运行安装时,它安装正常,然后在最后一步,删除它刚刚安装的所有文件.

I have a web setup project built using VS2008. I've converted my solution to VS2010 and now when I build my new installer and run the install from the MSI it installs fine, then at the last step, removes all the files it's just installed.

我已将 RemovePreviousVersions 设置为 true.如果我关闭此功能,文件会保留在原处(但我在控制面板的程序和功能"中获得多个实例).

I have RemovePreviousVersions set to true. If I turn this off the files remain in place (but I get multiple instances in the Programs and Features in the control panel).

如果我再次运行安装,文件会重新出现.从那时起,即使安装另一个版本,文件也始终保留.因此,问题似乎在于运行使用 VS2008 构建的安装程序,然后运行由 VS2010 构建的相同安装程序.每个安装程序上的升级 GUID 是相同的.

If I run the install again, the files reappear. From then on, the files always remain, even when installing another version. So, the problem seems to be with running an installer built using VS2008 and then running the same installer built by VS2010. The upgrade GUIDs on each installer are the same.

原因是什么,我该如何解决?

What is the cause and how can I fix this?

推荐答案

我刚遇到这个错误.升级时遇到了确切的问题.我在以下位置尝试了解决方案:

I just encountered this error. Had the exact problem when upgrading. I tried the solution at:

https://connect.microsoft.com/VisualStudio/feedback/details/559575

我在 InstallInitialize(序列号 1501)之后立即编辑了 Orca 重新排序的 RemoveExistingProducts 中的 MSI 文件.这是在 InstallExecuteSequence 表中找到的.这原本是序列号 6550.

I edited my MSI-file in Orca resequenced RemoveExistingProducts right after InstallInitialize (sequence number 1501). This was found in the InstallExecuteSequence table. This was originally sequence number 6550.

这解决了我的问题.

这篇关于Web 安装项目从 VS2008 升级到 VS2010 后删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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