.NET(C#)安装工程。包括其他包的问题 [英] .NET (C# ) Install Project. Including other packages problem

查看:160
本文介绍了.NET(C#)安装工程。包括其他包的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

乡亲。 我创建了一个VS2008安装项目这本身安装的罚款。 然而正在安装,本安装程序项目取决于成分(主要是说ESRI),它也必须在目标计算机上安装。 这里是ESRI一个单独的安装程序,我们已经和它由微星srcipt以及6个文件夹中,在那些有用户通过此MSI子文件夹。我似乎无法弄清楚如何包括进我的安装项目,让目标用户只需运行一个完整的包。 我想其中的以下几乎的工作原理: 在解决方案1.Created多了一个类库项目 2.Added安装程序类,以它 3.Overrode安装方法和写

folks. I've created a setup project in VS2008 which installs fine by itself. However projects being installed by this installer depend on components (mainly speaking ESRI) which must also be installed on target machines. There is a separate installer for ESRI that we have and it consists of msi srcipt as well as 6 folders with subfolders in those which are user by this msi. I can't seem to figure out how to include that into my setup project, so that target users just run one full package. I tried the following which almost works: 1.Created one more class library project in the solution 2.Added installer class to it 3.Overrode Install method and wrote

string path=Assembly.GetExecutingAssembly().Location;
Process.Start(Path.Combine(path, "esriinstaller.msi"));

4.Added MSI文件输出文件夹的窗格中安装项目 这完全不是那么回事B / C:1)路径没有指向到安装程序发起目录(其实我想Assembly.Get的各种组合...()BasePath方法 - 这些收益率无论是Windows \ System32或。目标文件夹),B)我也有ESRI的所有文件夹手动复制到安装的软件包目录(...斌\释放)

4.Added msi file to output folder's pane in installer project This does not quite work b/c: a)path doesn't point to directory where the installer was launched (in fact I tried various combinations of Assembly.Get...().BasePath methods - these yield either Windows\System32 or target folder) b)I also have to manually copy all ESRI folders into installer's package dir (...bin\Release)

那么,有没有一个有文化的办法是包添加到我的安装程序? (我在检测到依赖属性对话框中安装这些从全dotnetfix包中包含的配置.NET依赖它工作得很好,我想可能是我能以某种方式强制安装思考是ESRI也dependendent项目,但没有结果尚未)。 有什么建议?

So, is there a literate way to add that package to my installer? (I configured .NET dependencies in Detected Dependencies properties dialog box to install those from full dotnetfix included in the package and it worked fine, and I thought may be I could somehow force installer to "think" that ESRI is also dependendent on project, but with no results yet). Any suggestions?

现在,我们还需要一些自动化的安装程序包(如SQLServer2008的),以尽量减少用户interraction。事实上,我们希望苏preSS从安装某些对话框(不提供用SOFTICE - 我们不是黑客,偏偏)。我的一个朋友已经指出了一些AutoIt的项目。是不是这样?

Now, we also need to automate some installer packages (like SqlServer2008) to minimize user interraction. In fact, we would like to supress some dialogs from installer (do not offer to use SoftIce - we are not hackers, unfortunetly). A friend of mine has pointed to some AutoIt project. Is that it?

推荐答案

您可以添加自定义prerequisites来引导任何再发行组件包。请检查下面的链接。

You can add custom prerequisites to bootstrap any redistributable package. Please check the following links.

添加自定义prerequisites: http://msdn.microsoft.com/en-us /library/ms165429(VS.80).aspx

创建自定义套餐: http://msdn.microsoft.com/en-us/library/ms165429.aspx

这篇关于.NET(C#)安装工程。包括其他包的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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