NSIS做的安装程序,可接受命令行参数,实现静默安装,静默卸载等等,真不错!-来自手册
2011-10-13 17:01
951 查看
Generated installers and uninstallers accept a few options on the command line. These options give the user a bit more control over the installation process.
/S runs the installer or uninstaller silently. See
section 4.12 for more information.
/D sets the default installation directory ($INSTDIR), overriding
InstallDir and
InstallDirRegKey. It must be the last
parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.
ExecWait to wait for the uninstaller to finish. It must be the last
parameter used in the command line and must not contain any quotes, even if the path contains spaces.
3.2.1 Common Options
/NCRC disables the CRC check, unlessCRCCheck
forcewas used in the script.
/S runs the installer or uninstaller silently. See
section 4.12 for more information.
/D sets the default installation directory ($INSTDIR), overriding
InstallDir and
InstallDirRegKey. It must be the last
parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.
3.2.2 Uninstaller Specific Options
_?= sets $INSTDIR. It also stops the uninstaller from copying itself to the temporary directory and running from there. It can be used along withExecWait to wait for the uninstaller to finish. It must be the last
parameter used in the command line and must not contain any quotes, even if the path contains spaces.
3.2.3 Examples
installer.exe /NCRC
installer.exe /S
installer.exe /D=C:\Program Files\NSIS
installer.exe /NCRC /S /D=C:\Program Files\NSIS
uninstaller.exe /S _?=C:\Program Files\NSIS
# uninstall old version ExecWait '"$INSTDIR\uninstaller.exe" /S _?=$INSTDIR'
相关文章推荐
- android 实现静默安装和卸载
- [置顶] 【Android应用开发】-(18)静默方式实现批量安装卸载应用程序
- android 实现静默安装、卸载
- android实现静默安装和跳过卸载弹窗直接卸载应用
- NSIS:安装、卸载时检查程序是否正在运行
- android 实现静默安装、卸载
- Android静默方式实现批量安装卸载应用程序
- NSIS——安装、卸载时检查程序是否正在运行
- 让Android程序获得系统的权限,实现关机重启,静默安装等功能
- 让Android程序获得系统的权限,实现关机重启,静默安装等功能
- 让Android程序获得系统权限,实现关机重启,静默安装等功能
- android 实现静默安装、卸载(图)
- android 实现静默安装、卸载(图)
- vs2005安装程序的制作、.Net框架、数据库打包、卸载功能实现
- Android:Java代码实现APP普通安装卸载和静默安装卸载
- Android实现静默安装与卸载
- Android实现静默安装与卸载
- android 实现静默安装、卸载
- android 实现静默安装、卸载
- Android静默方式实现批量安装卸载应用程序