[英]WiX save msiexec install log during installation as part of a bundle
I am running Visual Studio 2010 and WiX 3.7. 我正在运行Visual Studio 2010和WiX 3.7。
I have successfully created a WiX project that distributes my XLL and has custom actions to register the XLL with Excel. 我已经成功创建了一个WiX项目,该项目可分发我的XLL,并具有自定义操作以向Excel注册XLL。 We plan to distribute the XLL for our users via a .NET web page with a button link that the user would click.
我们计划通过.NET网页为用户分发XLL,该网页带有用户单击的按钮链接。
I have been looking for an example of how to take my WiX project and save a installation log file (using the MSIEXEC parameters) to the company directory under program files. 我一直在寻找有关如何进行我的WiX项目并将安装日志文件(使用MSIEXEC参数)保存到程序文件下的company目录中的示例。 Is it correct that I need to create a bootstrapper project to do this so that the file can be distributed as part of the install?
我需要创建一个引导程序项目来执行此操作,以便可以在安装过程中分发文件,这是否正确?
If so, I have the following questions: 如果是这样,我有以下问题:
If the bootstrapper project is not the solution, how would I achieve the goal? 如果引导程序项目不是解决方案,那么我将如何实现目标?
EDIT 1: 编辑1:
I was able to create a bootstrapper project that creates an Install Log (in the temp directory by default). 我能够创建一个引导程序项目,该项目创建一个安装日志(默认情况下在temp目录中)。 This comes up with a brand new dialog.
这带有一个全新的对话框。
My questions on this are as follows: 我对此的疑问如下:
Can the resources (ie the EULA.rtf, Icon.ico, Dialog.jpg, and Banner.jpg) be specified as they were in the WiX setup project? 是否可以像在WiX设置项目中一样指定资源(即EULA.rtf,Icon.ico,Dialog.jpg和Banner.jpg)?
<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Bundle Name="Name" Version="1.0.0.0" Manufacturer="Company" DisableModify="yes" UpgradeCode="71515514-5c35-4a2f-a782-fe91bf2a5943" Compressed="yes"> <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> <Chain> <PackageGroupRef Id="InstallerPackage"/> </Chain> </Bundle> <Fragment> <PackageGroup Id="InstallerPackage"> <MsiPackage SourceFile="$(var.ExcelAddInDeploy.TargetPath)" Compressed="yes" EnableFeatureSelection="no" Vital="yes" DisplayInternalUI="yes"> <MsiProperty Name="MSC" Value="[MSC]" /> </MsiPackage> </PackageGroup> </Fragment> </Wix>
Thanks, 谢谢,
Lee 背风处
To answer my question, the way to suppress the EULA and show the correct images is given below. 为了回答我的问题,下面给出了抑制EULA并显示正确图像的方法。
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Bundle Name="Name"
Version="1.0.0.0"
Manufacturer="Company"
DisableModify="yes"
UpgradeCode="insert GUID here"
Compressed="yes">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense" >
<bal:WixStandardBootstrapperApplication
SuppressOptionsUI="yes"
LogoFile="C:\Path\Logo.jpg"
LicenseUrl=""
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" />
</BootstrapperApplicationRef>
<Chain>
<PackageGroupRef Id="InstallerPackage"/>
</Chain>
</Bundle>
<Fragment>
<PackageGroup Id="InstallerPackage">
<MsiPackage SourceFile="$(var.ExcelAddInDeploy.TargetPath)" Compressed="yes" EnableFeatureSelection="no" Vital="yes" DisplayInternalUI="yes">
<MsiProperty Name="MSC" Value="[MSC]" />
</MsiPackage>
</PackageGroup>
</Fragment>
</Wix>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.