博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How do I create a log file of my installation?
阅读量:4116 次
发布时间:2019-05-25

本文共 3533 字,大约阅读时间需要 11 分钟。

For a specific setup, when launching it

Launch your setup with a command line like this:

msiexec.exe /i C:\Path\Your.msi /L*v C:\Your.log

With Windows Installer 3.0 or above you can also add the x switch to get extra debugging information:

msiexec.exe /i C:\Path\Your.msi /L*vx C:\Your.log

If Windows Installer crashes or hangs so that you have to kill the process, some logging information may not yet be written to the file. In this case add the ! switch to flush each line to the hard disk:

msiexec.exe /i C:\Path\Your.msi /L*v! C:\Your.log  msiexec.exe /i C:\Path\Your.msi /L*vx! C:\Your.log

Note that this will slow down the performance of your install!

If you're using InstallShield's Setup.exe launcher, you can enter /L*v C:\Your.log in the CmdLine= entry of Setup.ini to force a log file to be created; starting with IPWI 2.03 environment variables are expanded, so you can use expressions like /L*v %TEMP%\Your.log. Other setup launchers support similar methods to specify command line arguments.

If you launch the setup from the InstallShield IDE you can specify the logging options in the Project Settings dialog.

For a specific setup, inside the .msi file

Starting with MSI 4.0 you can add the MsiLogging property to the Property table in the .msi file:

Table: Property

Column Name: MsiLogging
Column Value: voicewarmupx

You can also use voicewarmupx! to immediately flush each log line to disk.

This will generate log files named Msi*.log where * is a random number in the TEMP directory. The read-only property MsiLogFileLocation is set to the full path of the log file, so you could display the path or open the log file at the end of the install.

The MsiLogging property cannot be modified by a patch package (.msp). The /L command line parameter takes precedence over the MsiLogging propertry. The meaning of the flags in the value are documented in the . The MsiLogFileLocation property is read-only and cannot be used to specify the log file location.

Globally for all setups on a machine

You can also globally turn on Windows Installer logging for a machine. To do this create the following registry entry either directly in the registry or using Group Policy, as described in :

  [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]

  "Logging"="voicewarmup"
  "Debug"=dword:00000007

This will generate log files named Msi*.log where * is a random number in the TEMP directory for each MSI based setup. The meaning of the flags in the value are documented in the aforementioned . Note that you should use this only during the trouble shooting phase because it will have adverse effects on system performance and disk space.

For a specific setup created from a InstallScript MSI projects with InstallShield

Remark: This paragraph also applies to so called "Standard" projects in Developer version 7. It does not apply to "Basic MSI" projects.

Launch your setup with a command line like this:

Setup.exe /Verbose"C:\Your.log"

Globally for InstallScript MSI setups created with InstallShield

Remark: This paragraph also applies to so called "Standard" projects in Developer version 7. It does not apply to "Basic MSI" projects.

For InstallScript MSI Standard projects in InstallShield Developer/DevStudio you can generate a verbose log file by creating the following two registry entries:

  [HKEY_CURRENT_USER\Software\InstallShield\ISWI\3.0\SetupExeLog]

  "VerboseLogFileName"="C:\VerboseLog.log"

This method only works if the installation is started using Setup.exe, not of the .msi file is launched directly.

转载地址:http://bjupi.baihongyu.com/

你可能感兴趣的文章
Tomcat启动错误,端口占用
查看>>
laravel 修改api返回默认的异常处理
查看>>
高德坐标转换百度坐标 javascript
查看>>
tp5封装通用的修改某列值
查看>>
laravel控制器与模型名称不统一
查看>>
vue登录拦截
查看>>
npm配置淘宝镜像仓库以及electron镜像
查看>>
linux设置开机自启动脚本的最佳方式
查看>>
VUE SPA 单页面应用 微信oauth网页授权
查看>>
phpstorm 集成 xdebug 进行调试
查看>>
npm和node升级的正确方式
查看>>
laravel事务
查看>>
springcloud 连续请求 500
查看>>
vue复用新增和编辑表单
查看>>
Ubuntu 16.04 apt-get更换为国内阿里云源
查看>>
laravel部署到宝塔步骤
查看>>
小程序获取access_token
查看>>
navicat远程连接mysql数据库
查看>>
tp5令牌数据无效 解决方法
查看>>
自己的网站与UCenter整合(大致流程)
查看>>