热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

使用.net应用程序部署打包.net框架-Packagingupthe.netframeworkwitha.netapplicationdeployment

Canyoupackageupthe.NetframeworkinaninstallercreatedinVisualStudio?Ifsohow?您可以在Visua

Can you package up the .Net framework in an installer created in Visual Studio? If so how?

您可以在Visual Studio中创建的安装程序中打包.Net框架吗?如果是这样的话?

I've seen this done with Install4J packaging a JVM but I think that was the JVM to run Install4J.

我已经看到使用Install4J打包JVM完成了这个,但我认为这是运行Install4J的JVM。

3 个解决方案

#1


5  

This article should help: HOW TO: Distribute the .NET Framework with a Visual Studio .NET Deployment Project (MSDN)

本文应该有所帮助:如何:使用Visual Studio .NET部署项目(MSDN)分发.NET Framework

#2


1  

I just learned this lesson about deployment projects: the .MSI file delivers the application to the target machine, but that SETUP.EXE is the bootstrapper that installs prerequisites, such as the .NET Framework, MDAC, or Windows Installer. I specified the .NET Framework as a prerequisite but, because I only distributed the .MSI, no checks were run and the app crashed when starting up without the framework.

我刚学到了关于部署项目的这一课:.MSI文件将应用程序传递给目标机器,但SETUP.EXE是安装先决条件的引导程序,例如.NET Framework,MDAC或Windows Installer。我指定.NET Framework作为先决条件但是,因为我只分发了.MSI,所以没有运行检查,并且在没有框架的情况下启动应用程序时崩溃了。

To ensure your prerequisites are on the target machine, you need to distribute the setup.exe too.

要确保您的先决条件在目标计算机上,您还需要分发setup.exe。

#3


0  

Sucky, yeah - I created an installer just recently before realizing that the .Net Framework (which was one of the things I needed to install) was required. I ended up making a c++ program that installed .Net before my installer was launched.

Sucky,是的 - 我刚刚发现安装程序之前才意识到需要安装.Net Framework(这是我需要安装的东西之一)。在安装程序启动之前,我最终制作了一个安装.Net的c ++程序。

Seems kind of odd to me to offer the ability to create an installer and not have it offer to install what it needs to run. Kinda pointless at that point, eh? Unless you know that every machine you give the installer to will have the necessary components...

对我来说似乎有点奇怪,它提供了创建安装程序的能力,并没有提供安装它需要运行的东西。那时候有点无意义,是吗?除非你知道你给安装者的每台机器都有必要的组件......

Oh well, live and learn

哦,生活和学习


推荐阅读
author-avatar
我喜欢吕继宏
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有