八、Wise Installation Professional
制作的安装文件,可用 /silent 参数进行静默安装
无人值守安装光盘最有魅力的地方之一
就是在安装过程中可以静默安装好预先设计集成的一些常用软件,安装结束以后软件就已经可以使用
但是很多朋友发现每个软件以及系统补丁,它们的静默安装参数是不一样的
在本文就和广大爱好者一起研究一下几种常见软件封包形式的静默安装方式
如有遗漏和错误之处,请指出,大家互相交流!
常用的软件封包形式主要有以下几个形式
Inno Setup
InstallShield
NSIS
Microsoft Windows Installer
WISE
QUOTE:
一.Inno Setup
使用Inno技术制成的程序安装包可以使用/SILENT 和 /VERYSILENT参数进行静默安装
我不知道这两个参数有什么分别,因为它们实现的功能看上去是一样的
setup.exe /VERYSILENT
你会看到一个对话框,询问你是否打算继续安装:
我们可以通过使用一个参数跳过这个对话框:
setup.exe /VERYSILENT /SP-
有些利用Inno 技术做作的安装包会在程序安装完毕后自动运行所安装的程序,例如ISOBuster
不过我们可以使用一个叫做Taskkill的系统自带工具杀死相关的进程。
以下是一个可以用于批处理文件安装由Inno打包的软件的命令的示例:
ECHO.
ECHO 正在安装ISOBuster 1.4
ECHO 请稍候...
start /wait %systemdrive%installApplicationsISOBusterIsoBuster14.exe /VERYSILENT /SP-
ECHO.
ECHO Killing ISOBuster.exe process
taskkill.exe /F /IM isobuster.exe
ECHO.
我怎么知道哪个安装程序是用Inno 技术打包的?
这种软件安装时第一个界面一般如下图所示
在窗口标题栏左侧的图标上点击鼠标左键
然后再探出菜单上点击“About Setup”也可以看见安装类型
更多使用Inno技术打包的软件可用的参数可以在下面看到:
E文好的朋友可以仔细研究研究
With the Inno Setup Extentions in use the following command line switches become available:
SP-
Disables the This will install... Do you wish to continue? prompt at the beginning of Setup. Of course, this will have no
effect if the DisableStartupPrompt [Setup] section directive was set to yes.
/SILENT, /VERYSILENT
Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed but
the 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 you
haven''t disabled it with DisableStartupPrompt or the ''/SP-'' command line option explained above)
If a restart is necessary and the ''/NORESTART'' command isn''t used (see below) and Setup is silent, it will display a
Reboot now? messagebox. If it''s very silent it will reboot without asking.
/NORESTART
Instructs Setup not to reboot even if it''s necessary.
/LOADINF="filename"
Instructs Setup to load the settings from the specified file after having checked the command line. This file can be prepared
using the ''/SAVEINF='' command as explained below.
/SAVEINF="filename"
Instructs Setup to save installation settings to the specified file.
/DIR="x:dirname"
Overrides the default directory name displayed on the Select Destination Directory wizard page. A fully qualified pathname
must be specified. If the [Setup] section directive DisableDirPage was set to yes, this command line parameter is ignored.
/GROUP="folder name"
Overrides the default folder name displayed on the Select Start Menu Folder wizard page. If the [Setup] section directive
DisableProgramGroupPage was set to yes, this command line parameter is ignored.
/NOICONS
Instructs Setup to initially disable the Don''t create any icons check box on the Select Start Menu Folder wizard page.
/COMPONENTS="comma separated list of component names"
Overrides the default components settings. Using this command line parameter causes Setup to automatically select a custom
type.
QUOTE:
本文导航
- 第1页: 首页
- 第2页: InstallShield
- 第3页: InstallShield with MSI
- 第4页: Wise Installation Professional
- 第5页: InstallShield
- 第6页: NullSoft Installation System-NSIS
- 第7页: Microsoft Windows Installer
- 第8页: WISE Installer