![](/img/trans.png)
[英]How to copy folder/files1..to..files5 during the installation of wix installer
[英]WiX save msiexec install log during installation as part of a bundle
我正在运行Visual Studio 2010和WiX 3.7。
我已经成功创建了一个WiX项目,该项目可分发我的XLL,并具有自定义操作以向Excel注册XLL。 我们计划通过.NET网页为用户分发XLL,该网页带有用户单击的按钮链接。
我一直在寻找有关如何进行我的WiX项目并将安装日志文件(使用MSIEXEC参数)保存到程序文件下的company目录中的示例。 我需要创建一个引导程序项目来执行此操作,以便可以在安装过程中分发文件,这是否正确?
如果是这样,我有以下问题:
如果引导程序项目不是解决方案,那么我将如何实现目标?
编辑1:
我能够创建一个引导程序项目,该项目创建一个安装日志(默认情况下在temp目录中)。 这带有一个全新的对话框。
我对此的疑问如下:
是否可以像在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>
谢谢,
背风处
为了回答我的问题,下面给出了抑制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.