一些常用软件静默安装参数

上传人:平*** 文档编号:11283293 上传时间:2017-10-12 格式:DOCX 页数:9 大小:21.43KB
返回 下载 相关 举报
一些常用软件静默安装参数_第1页
第1页 / 共9页
一些常用软件静默安装参数_第2页
第2页 / 共9页
一些常用软件静默安装参数_第3页
第3页 / 共9页
一些常用软件静默安装参数_第4页
第4页 / 共9页
一些常用软件静默安装参数_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《一些常用软件静默安装参数》由会员分享,可在线阅读,更多相关《一些常用软件静默安装参数(9页珍藏版)》请在金锄头文库上搜索。

1、一些常用软件静默安装参数(nsis,msi,InstallShield ,Inno)有时我们在安装程序的时候,希望是静默安装的,现在常用的制作安装程序的软件有, Microsoft Windows Installer , Windows 补丁包 , InstallShield , InstallShield with MSI , WISE Installer , Inno Setup , NullSoft Installation System 等。软件的安装采取全自动或半自动的方式进行。一、Microsoft Windows Installer 如果某个软件是用 Windows Instal

2、ler 打包的,那你就应该能在文件夹中看到 *.msi 文件。这是最典型的特征,这些文件通常可以使用 /QB 和 /QN 参数进行自动安装。/qb 会在窗口中显示一个基本的安装进程。/qn 参数则不会显示任何窗口,直接在后台自动安装。为了阻止某些程序安装成功后自动重启动(例如 Kerio Personal Firewall 4) ,你可以在 /qn 或者 /qb 参数后使用 REBOOT=Suppress 标记。例如:安装虚拟光驱 DaemonTools:msiexec /i dtools.msi /qb REBOOT=SUPPRESS二、Windows 补丁包 有两种情况,一种是类似 IE

3、增量补丁包的那种安装文件,要使之静默安装,只需要在执行文件后加上 /q:a /r:n 参数即可;一种是 Windows 常用的补丁文件,一般情况下加上 /U /N /Z 即可实现静默安装。 (对于新的系统补丁,也可使用 /passive /norestart) 。这通用大部分情况,但某些特定的补丁不能用此法进行静默安装。三、InstallShield 下载地址: http:/ InstallShield 技术打包的程序,首先要在现有的操作系统中创建一个 setup.iss 文件。在命令行窗口中使用 -R 参数(大小写敏感)运行安装程序。例如:Setup.exe -R2、接着会显示常见的安装屏幕

4、,并且询问你一些问题,例如要安装的目录等有一点是很重要的,在安装结束后你不能选择“立刻重启动计算机”的选项。如果你选了,在批处理文件中的其他命令就会因为计算机重启动而无法执行。3、在安装程序运行完毕后,打开你的 C:Windows(或者 C:WINNT)目录,然后找到 setup.iss 文件,把这个文件和你将要静默安装的程序 setup.exe 保存在同一个目录中。4、 用以下命令进行静默安装: setup.exe -s -sms说明:怎么知道哪个程序是使用 InstallShield 技术打包的?大部分这类程序的安装文件都可以被压缩软件解压缩,安装文件 setup.exe 的属性对话框中应

5、该有“InstallShield (R) Setup Launcher”或者其他类似的字样。最后,如果你在保存安装文件的文件夹中看到了一个 setup.iss 文件,那么毫无疑问这是用 InstallShield 打包了!四、InstallShield with MSI InstallShield with MSI 制作的安装文件,请使用类似:setup.exe /s /v /qb 来安装。五、WISE Installer 用 WISE 技术打包的软件在安装的时候可以选择使用 /s 参数进行自动安装。六、Inno Setup 下载地址: http:/ Setup 制作的安装文 件,请使用:se

6、tup.exe /sp- /silent /norestart说明:怎么知道哪个安装程序是用 Inno 技术打包的?这种软件在安装时出现的第一个界面,在窗口标题栏左侧的图标上点击鼠标左键,然后再探出菜单上点击“About Setup”可以看见安装类型。七、NullSoft Installation System http:/ NSIS(NullSoft Installation System)制作的安装文件,可用 /S (注意大写)来进行静默安装(“S”是大小写敏感的) 。例如:Setup.exe /S也可以用 /D 参数选择将要安装的目标分区和文件夹:例如:Setup.exe /S /D=E

7、:SoftwareQQ2007像 Winamp 和 CDex 这类的软件都会在安装结束后显示一个确认屏幕(CDex)或者一个设置文件关联方式的结束安装屏幕(Winamp)说明:怎么知道哪个程序是使用 NSIS 技术打包的?很多用 NSIS 打包的程序在安装的时候都有类似的窗口,例如 Winamp 和 CDex。八、Wise Installation Professional 制作的安装文件,可用 /silent 参数进行静默安装无人值守安装光盘最有魅力的地方之一就是在安装过程中可以静默安装好预先设计集成的一些常用软件,安装结束以后软件就已经可以使用但是很多朋友发现每个软件以及系统补丁,它们的静

8、默安装参数是不一样的在本文就和广大爱好者一起研究一下几种常见软件封包形式的静默安装方式如有遗漏和错误之处,请指出,大家互相交流!常用的软件封包形式主要有以下几个形式Inno SetupInstallShieldNSISMicrosoft Windows InstallerWISEQUOTE:一.Inno Setup使用 Inno 技术制成的程序安装包可以使用/SILENT 和 /VERYSILENT 参数进行静默安装我不知道这两个参数有什么分别,因为它们实现的功能看上去是一样的setup.exe /VERYSILENT你会看到一个对话框,询问你是否打算继续安装:我们可以通过使用一个参数跳过这个

9、对话框:setup.exe /VERYSILENT /SP-有些利用 Inno 技术做作的安装包会在程序安装完毕后自动运行所安装的程序,例如ISOBuster不过我们可以使用一个叫做 Taskkill 的系统自带工具杀死相关的进程。以下是一个可以用于批处理文件安装由 Inno 打包的软件的命令的示例:ECHO.ECHO 正在安装 ISOBuster 1.4ECHO 请稍候.start /wait %systemdrive%installApplicationsISOBusterIsoBuster14.exe /VERYSILENT /SP-ECHO.ECHO Killing ISOBuster

10、.exe processtaskkill.exe /F /IM isobuster.exeECHO.我怎么知道哪个安装程序是用 Inno 技术打包的?这种软件安装时第一个界面一般如下图所示在窗口标题栏左侧的图标上点击鼠标左键然后再探出菜单上点击“About Setup”也可以看见安装类型更多使用 Inno 技术打包的软件可用的参数可以在下面看到:E 文好的朋友可以仔细研究研究With the Inno Setup Extentions in use the following command line switches become available:SP-Disables the This

11、 will install. Do you wish to continue? prompt at the beginning of Setup. Of course, this will have noeffect if the DisableStartupPrompt Setup section directive was set to yes./SILENT, /VERYSILENTInstructs Setup to be silent or very silent. When Setup is silent the wizard and the background window a

12、re not displayed butthe installation progress window is. When a setup is very silent this installation progress window is not displayed.Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if youhavent disabled it with DisableStartupPro

13、mpt or the /SP- command line option explained above)If a restart is necessary and the /NORESTART command isnt used (see below) and Setup is silent, it will display aReboot now? messagebox. If its very silent it will reboot without asking./NORESTARTInstructs Setup not to reboot even if its necessary.

14、/LOADINF=filenameInstructs Setup to load the settings from the specified file after having checked the command line. This file can be preparedusing the /SAVEINF= command as explained below./SAVEINF=filenameInstructs Setup to save installation settings to the specified file./DIR=x:dirnameOverrides th

15、e default directory name displayed on the Select Destination Directory wizard page. A fully qualified pathnamemust be specified. If the Setup section directive DisableDirPage was set to yes, this command line parameter is ignored./GROUP=folder nameOverrides the default folder name displayed on the S

16、elect Start Menu Folder wizard page. If the Setup section directiveDisableProgramGroupPage was set to yes, this command line parameter is ignored./NOICONSInstructs Setup to initially disable the Dont create any icons check box on the Select Start Menu Folder wizard page./COMPONENTS=comma separated list

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号