C#,WPF,Visual Studio 2010,Windows XP/7,标准设置项目
我在我的主项目中创建了一个安装安装项目,以便创建一个可以下载和安装的 .msi 文件,但我有以下问题。
如何让安装过程删除旧的安装,因为它现在可以工作 安装文件抱怨已经安装了该程序的(旧)版本 需要首先删除这个(如果用户已经安装过该程序一次)。
如何在应用程序菜单文件夹中创建“http 链接”? 我想在安装过程中在应用程序菜单中创建一个菜单项 启动(默认)互联网浏览器并转到我指定的 url 的文件夹。
是否有关于如何向安装项目添加新对话框的良好指南? 我希望安装处于“两种模式”,“快速”和“高级”,其中 快速安装具有 hdefault 值的应用程序,但高级应用程序将 询问用户选择的两个文件夹。
setu项目创建了两个文件XXXX.msi和一个setup.exe,setup.exe有什么用? 是不是那些没有安装某种软件的机器无法读取.msi文件?
是否有可用的 [xxxx] 标签的文档,例如 [Author]、[ApplicationName] ETC。 ? 因此,我不必在安装项目文件中对某些内容进行硬编码。
/斯特凡
I have created a installtion Setup project in my main project in orderto create a .msi file which could be download and installed but I have the following questions.
How do I make the installtion process remove the old installation, as it works now
the installation file complains that an (older) version of the program is already installed
and this one needs to be removed first (if the user have already installed the program once).How can I create a "http link" in the applications menu folder ?
I would like to, during the installation, create a menu item in the applications menu
folder which start the (default) internet browser and go to the url I have specified.Is there a good guide how to add new dialog boxes to a setup project ?
I want to the installation to be in "two modes", "quick" and "advanced", where the
quick one install the application wit hdefault values but the advanced one will
ask the user for two folders which the user select.The setu project creates tw files XXXX.msi and a setup.exe, what is the setup.exe needed for?
is it for those machines that do not have some sort of software installed that can not read .msi files ?Is there soem documentation of which [xxxx] tags are aviable, like [Author], [ApplicationName]
etc. ?
So I do not have to hardcode ceartain stuff in the Setup project file.
/Stefan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在安装项目“属性”窗格中,使用以下设置:
这样 Windows Installer 将自动使用 主要升级机制,用于删除旧版本 产品。
Visual Studio 不支持 URL 快捷方式。解决方案是使用自定义操作来创建快捷方式。
Visual Studio 在创建自定义安装 UI 方面非常有限。也许本教程会有所帮助:
http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx
大多数具有自定义 UI 的安装包都是使用其他安装创作工具创建的。
EXE 引导程序处理您的软件包先决条件:
是的,Windows Installer 属性参考。
In your setup project Properties pane use the following settings:
This way Windows Installer will automatically use the major upgrade mechanism to remove older versions of your product.
Visual Studio doesn't support a shortcut to URL. A solution is to use a custom action to create the shortcut.
Visual Studio is very limited when it comes to creating a custom installation UI. Perhaps this tutorial will help:
http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx
Most setup packages which have a custom UI are created with other setup authoring tools.
The EXE bootstrapper handles your package prerequisites:
Yes, the Windows Installer property reference.