自定义Windows安装程序 [英] custom windows installer

查看:158
本文介绍了自定义Windows安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了一个应用程序,该应用程序是一个窗口服务,必须在域管理员帐户的上下文下运行,并需要一些服务器设置等内容.

现在,我需要在客户端计算机上安装它,显然,我无法使用普通的部署项目MSI来执行此操作,因为它涉及安装时的自定义对话框和用户输入.

我该怎么办?

现在是否有任何第三方框架真正允许我创建自定义对话框并编写将在运行时执行的代码?

如果我必须手动执行此操作?如何将自定义安装程序文件和Windows Server应用程序文件合并到单个MSI中.

这就是我想要安装过程的方式-

1)欢迎屏幕
2)系统检查
3)EULA
4)根据产品许可的服务器设置,用户可以单选.
5)基于最后选择的服务器设置.
6)我的窗口服务器设置将进行一次休息呼叫并更新服务器.
7)接受域用户帐户凭据.
8)现在开始安装.
9)根据选择根据完成消息重定向到云门户.

请提出

在此先感谢

Hi Guys,

I have created an application which is an window service which has to run under context of domain administrator account and take some server settings etc stuff.

Now I need to install it on client machine, obviously I can not do it using normal deployment project MSI because it involved custom dialog and user input while installation.

How can I do this?

Now Is there any 3rd party framework which really allow me to create custom dialog and write code which will execute at runtime?

If I have to do it manually? How I will incorporate my custom installer files and my windows server application files into a single MSI.

This is how I want to have my installation process-

1) Welcome Screen
2) System Checks
3) EULA
4) Server settings as per product licensing, its a radio selection by user.
5) Server settings based on last selection.
6) my window server settings which will make a rest call and update server.
7) accepting domain user account credentials.
8) Now installations starts.
9) Redirection to cloud portal with finish message based on selection.

Please suggest

Thanks in advance

推荐答案

大多数安装程序在尝试执行比平常的事情还要痛苦的事情.

我个人将NSIS安装程序与我可以完全控制的自己的.net应用程序安装程序一起使用,NSIS脚本仅检查.net可用性并安装所需的.net运行时,然后解压缩文件并调用我的安装程序EXE.

下面是检查.net的安装脚本,将您的代码添加到在这里做东西".
Most installers are painful when trying to do more than the usual things.

Personally I use NSIS installer with my own .net application installer which I can control completely, the NSIS script just checks for .net availability and installs the .net runtime needed then unpacks the files and calls my installer EXE.

Below is the install script which checks for .net, add your code to "do stuff here".
!define PRODUCT_NAME "DotNetVer Tests"
!define PRODUCT_VERSION "1.1"
!define PRODUCT_PUBLISHER "NSIS"
!define PRODUCT_WEB_SITE "http://nsis.sourceforge.net/"
 
SetCompressor /SOLID LZMA
Brandingtext "Installer (www.companyname.com)"


; Modern interface settings
!include "MUI.nsh"

!define MUI_ABORTWARNING
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH 


; Set languages (first is default language)
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_RESERVEFILE_LANGDLL
 
Name "


{PRODUCT_NAME}
{PRODUCT_NAME}


{PRODUCT_VERSION}" OutFile"DotNetVerTests.exe" InstallDir"
{PRODUCT_VERSION}" OutFile "DotNetVerTests.exe" InstallDir "


这篇关于自定义Windows安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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