简体   繁体   English

将Visual Studio Installshield项目从Windows XP移至Windows 7

[英]Moving Visual Studio Installshield project from Windows XP to Windows 7

I have a Visual Studio project that compiles correctly on a Windows XP computer. 我有一个Visual Studio项目,可以在Windows XP计算机上正确编译。 I have copied the entire project to another PC running Windows 7 and it generates compilation errors. 我已将整个项目复制到另一台运行Windows 7 PC上,它会生成编译错误。

The application uses .NET Framework 4.0 and Visual C++ redistributables, installed locally. 该应用程序使用本地安装的.NET Framework 4.0Visual C++再发行组件。 It couldn't find these. 它找不到这些。

I realised that it was looking for the Microsoft.net in 我意识到它正在寻找Microsoft.net

c:\Program Files\Installshield\2012SpringLE\SetupPrerequisites

By right-clicking on the Microsoft .NET Framework 4.0 entry in the Redistributables (Installshield) window I was able to search for the merge module and corrected it to 通过在“可再发行文件(Installshield)”窗口中右键单击Microsoft .NET Framework 4.0条目,我能够搜索合并模块并将其更正为

c:\Program Files (x86)\Installshield\2012SpringLE\SetupPrerequisites

That overcame the .NET Framework 4.0 problem 克服了.NET Framework 4.0问题

However, I can't find the merge modules for the Visual C++ entry in the Redistributables (Installshield) window. 但是,我在Redistributables(Installshield)窗口中找不到Visual C ++条目的合并模块。 Can anyone tell me where they are? 谁能告诉我他们在哪里?

This is one of the big reasons that I suggest not only building on your machine. 这是我建议不仅在您的计算机上构建的主要原因之一。 A proper CI build system should run on any number of build servers. 正确的CI构建系统应可在任意数量的构建服务器上运行。

For merge modules you need to look at your merge module search path found in Tools | 对于合并模块,您需要查看在“工具” |“工具”中找到的合并模块搜索路径。 Options | 选项| Merge Modules Search those directories for your merge modules and copy them over to your new server. 合并模块在那些目录中搜索您的合并模块,然后将其复制到新服务器上。

For pretty much everything else you need to be aware of the Path Variables view (abstraction) what they are set to and how they are being used by various tables such as Binary, File, Icon and so on. 对于几乎所有其他内容,您需要了解“路径变量”视图(抽象),将它们设置为什么,以及各种表(例如Binary,File,Icon等)如何使用它们。

Personally I'm very meticulous when it comes to managing this and making sure everything is checked into source control properly. 就我个人而言,在管理此过程以及确保一切都已正确检查到源代码管理中时,我非常谨慎。 InstallShield will allow you to do very bad things in this area and not warn you what you are doing is problematic. InstallShield将允许您在此区域中做非常糟糕的事情,而不会警告您正在做的事情有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM