Wix Bootstrapper MSI-Package日志记录,如何? [英] Wix Bootstrapper MSI-Package logging, how?
问题描述
我有一个引导程序,可安装 MSI软件包.
I have a bootstrapper that installs a MSI-package.
我如何实现至少msi-package-installation被记录(详细记录)?在哪里可以设置日志文件路径?因为我无法记录所有的猜测?
How can i achieve that at least the msi-package-installation gets logged(verbose logging)? And where can i set the log-file-path? Because I won't be able to log everything i guess?
不,我不想要一个 cmd解决方案,我需要将此实施到我的设置中
And no, i don't want a cmd-solution, i need to implement this into my setup
找到了LogPathVariable,但真的不知道它是如何工作的吗?
Found LogPathVariable, but don't really know how it works?
<MsiPackage SourceFile="$(var.Setup.TargetPath)" LogPathVariable="" />
Googled arround很多次了,还没有找到解决该问题的方法,有帮助吗?
Googled arround many times and havn't found a solution for this problem, any help?
推荐答案
默认情况(未设置LogPathVariable)将在C:\ Users \ username \ AppData \ Local \ Temp中创建日志,MSI日志将很详细,也是引导程序的日志.
The default case (no LogPathVariable set) will create logs in C:\Users\username\AppData\Local\Temp the MSI logs will be verbose, there will also be a log for the bootstrapper.
对于自定义目标,您可以创建变量并进行设置
For a custom destination you can create a Variable and set it
<Variable Name="MyLogDestination" Type="string" Value=path to where you want log created />
您可以将刻录变量之一与部分路径.我认为
You could use one of the burn variables in conjunction with a partial path. I think
<Variable Name="MyLogDestination" Type="string" Value="[ProgramFiles6432Folder]\YourProduct\" />
虽然我还没有尝试过,但是仍然可以工作.
might work though I've not tried it.
然后您将变量名放入LogPathVariable
You would then put your variable name in the LogPathVariable
<MsiPackage SourceFile="$(var.Setup.TargetPath)" LogPathVariable="MyLogDestination" />
这篇关于Wix Bootstrapper MSI-Package日志记录,如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!