InstallShield LE(使用Visual Studio 2012)完全无法检测到依赖关系 [英] InstallShield LE (with Visual Studio 2012) completely fails to detect dependencies

查看:224
本文介绍了InstallShield LE(使用Visual Studio 2012)完全无法检测到依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个噩梦,试图在InstallShield LE(VS 2012附带的一个)中安装一个简单的安装程序.我可以解决各种各样的问题(例如,如果不将所有内容弄乱,我将无法再执行全部重建"这一事实-我只需要在开发过程中卸载InstallShield项目即可).但是最大的问题是,在我构建安装程序时,它包含各种DLL的错误版本(包括项目中的那些版本以及Entity Framework DLL等第三方的版本).

I'm having a nightmare trying to get a simple installer working in InstallShield LE (the one shipped with VS 2012). There are all kinds of problems that I can work around (like the fact I can no longer do "Rebuild All" without it messing everything up - I need to simply unload the InstallShield project during development). But the biggie is that when I build my installer, it includes the wrong version of various DLLs (including both those that are part of my project, and 3rd-party ones like the Entity Framework DLL).

执行干净的解决方案"甚至无法解决我的解决方案中的DLL问题.它正在我的机器上的某个地方(某种编译器的temp目录中)找到一个随机版本,并坚持要包含该版本.我最终通过在Windows资源管理器中进行搜索并删除找到的每个文件来解决该问题,但是我担心下一次发布时它仍然会选择错误的文件.

Doing a "Clean Solution" didn't even fix the problem with the DLLs that are in my solution. It was finding a random version somewhere on my machine (in some sort compiler temp directory), and insisting on including that. I eventually fixed that by doing a search in Windows Explorer and deleting every single file it found, but I worry that next time I do a release it'll still manage to pick the wrong file.

此外,我需要在计算机上同时安装.NET 4和.NET 4.5版本的Entity Framework,并且选择了错误的版本进入安装程序.我无法删除不希望包含的内容.

Plus, I need to have both the .NET 4 and .NET 4.5 versions of Entity Framework on my machine, and it's picking the wrong one to go into my installer. I can't delete the one I don't want it to include.

真是个伪劣产品.我可以升级"到完整版本,看看是否能解决所有这些问题,但是我最近在LE版本上的经验使我不再使用它们的任何产品.

What an absolutely shoddy product. I could "upgrade" to the full version to see if that fixes any of these problems, but my recent experience with the LE version puts me off ever using any of their products ever again.

还有其他人有类似的问题吗?找到解决方案了吗?

Has anyone else had similar problems? Did you find a solution?

推荐答案

旧帖子,所以这也许可以帮助您或其他人解决这个令人毛骨悚然的问题(假设您遇到错误

Old post so perhaps this can help you or others going through this infuriating issue (assuming you're going through errors like -6225).

症状:

  • 您可以毫不费力地(重新)构建每个项目,包括Install Shield项目
  • 但是,如果您构建(多个项目的)<解决方案,则似乎会弹出错误
  • you can (re)build each project without a hitch, including the Install Shield project
  • however, if you build the Solution (of multiple projects) errors just seem to pop up

尝试:

  • 在VS 2012中,右键单击您的解决方案,然后选择Project Build Order
  • 即使顺序看起来"正确,也要继续设置依赖项
    • 例如您的安装项目取决于源项目(显然,但是由于此工具不知道"它需要一些帮助).
    • in VS 2012, right click your Solution and select Project Build Order
    • even if the order "looks" right, continue to set dependencies
      • e.g. your install project depends on the source project (obviously, but since this tool doesn't "know" it needs some help).

      我不确定这是否可以解决错误的dll"问题(我没有经历过那种痛苦...),但是检查项目输出的建议可能会帮助....以上确实解决了我的问题.问题.

      I'm not sure if this solves the "wrong dlls" issue (I haven't gone through that pain...) but the suggestion to check on the project outputs could help....the above did fix my issues.

      是的,我同意,如果它甚至不能与 VS2010及更低版本 设置和部署项目易于使用,那么它就是其中之一-开发人员必须应对的学习曲线(时间浪费). 虽然不准备称其为次充好,但它确实有一些不错的糖果-甚至是限量版".....

      Yes, I agree, if it can't even do parity with VS2010 and below setup and deployment projects ease of use, then its one of those yet-another-learning-curve that devs have to deal with (waste of time). Not prepared to call it shoddy though, it does have some nice(r) candy - even the "limited" version.....

      无论如何,我希望这会有所帮助....

      Anyway I hope this helps....

      是的,我确实可以正式称其为ISLE伪劣.我现在可怕地遇到了丢失的dll"(忘记错误的dll,它们甚至不在intall文件夹中,请原谅色彩斑lang的语言,但是WTF ?? !!)问题. ISLE无法识别适当的依赖关系-我不同意先前的回答.自VS 2005以来,内置的Setup and Deployment Project一直存在此问题不存在.

      Yes, I can officially call ISLE shoddy indeed. I am now horribly experiencing the "missing dlls" (forget wrong dlls, they're not even in the intall folder, excuse the colorful langauge but WTF??!!) issue. ISLE cannot identify the proper dependencies - and I don't agree with the previous answer. This issue DID NOT exist with the built-in Setup and Deployment Project we've had since VS 2005.

      同意有关骨头MS举动的评论.

      Agreed on comment regarding bonehead MS move.

      一旦解决此问题,我将进行更新.

      Once I fix this issue, I'll update.

      我的解决方法(如果有更好的方法,请提供答案).所有这些操作均在ISLE UI中完成:

      My fix (if there is a better way, please provide answer).. All this is done in the ISLE UI:

      1. 扫描依赖关系-右键单击项目主输出,选择Dependencies from scan at build

      您将看到必须手动添加的依赖项,并用红色图标表示
      我未选中它们,因此可以摆脱 -6248警告,这确实很奇怪,因为恕我直言,它应该是致命错误-构建中-如何安装/设置如果缺少依赖项,可以正常工作吗? 警告继续构建,但永远不起作用

      You will see the dependencies you will have to manually add, indicated by a red icon
      I unchecked them so I could get rid of the -6248 warning which is really odd because IMHO it should be a fatal error in the build - How can this install/setup possibly work if it's missing dependencies?? A warning continues the build, yet it will never work!

      然后(是)手动添加您在上面确定的依赖项...

      Then (yes) manually add the dependencies you identified above...

      顺便说一句,不确定这是否重要-我通过导入使用ISLE(ISLE menu-> Visual Studio Deployment Project Import Wizard)的VS 2010安装项目开始了整个过程.我不确定这是否真的很重要-re:如果您从头开始(而不是导入),它仍然能够Dependencies from scan at build吗?

      BTW, unsure if this matters - I started the whole process by importing a VS 2010 install project using ISLE (ISLE menu -> Visual Studio Deployment Project Import Wizard). I'm not sure if this actually matters - re: would it still be able to Dependencies from scan at build if you started from scratch (instead of importing)?

      对于VS2012的安装和部署中的进度"来说,太多了​​……

      So much for "progress" in Setup and Deployment for VS2012...

      希望这会有所帮助!

      这篇关于InstallShield LE(使用Visual Studio 2012)完全无法检测到依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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