WiX 3.7和MATLAB 2012a MCR
是否有创建安装程序的教程,可以检查MCR是否已经安装,如果没有,可以安装它WiX 3.7和MATLAB 2012a MCR,matlab,wix,windows-installer,Matlab,Wix,Windows Installer,是否有创建安装程序的教程,可以检查MCR是否已经安装,如果没有,可以安装它 我正在使用。以下是我针对MCR 2012a和.NET 4.5的解决方案,如果有更好的方法,请发表意见: 这是用于文档的 <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/
我正在使用。以下是我针对MCR 2012a和.NET 4.5的解决方案,如果有更好的方法,请发表意见: 这是用于文档的
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:netfx='http://schemas.microsoft.com/wix/NetFxExtension'>
<Bundle Name="MYAPP"
Version="0.6"
Manufacturer="MY Corporation"
UpgradeCode="f380ae43-5df1-4cfe-9297-526e3e638e57">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<!-- TODO: Define the list of chained packages. -->
<PackageGroupRef
Id="Netfx45FullPackage"/>
</Chain>
</Bundle>
<Fragment>
<util:RegistrySearch
Id="MatlabPath"
Variable="UniqueId"
Root="HKLM"
Key="SOFTWARE\Matworks\MATLAB\4.17\"
Result="exists"/>
<PackageGroup Id="Netfx45FullPackage">
<ExePackage
Id="Netfx45Xxx"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="no"
InstallCommand="/q"
SourceFile="..\SetupProject\dotnetfx45_full_x86_x64.exe"
DetectCondition="(Netfx4FullVersion="4.5.50709") AND (NOT VersionNT64 OR (Netfx4x64FullVersion="4.5.50709"))"
InstallCondition="(VersionNT >= v6.0 OR VersionNT64 >= v6.0) AND (NOT (Netfx4FullVersion="4.5.50709" OR Netfx4x64FullVersion="4.5.50709"))"/>
<ExePackage
Id="MatlabMCR2012a64"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="no"
InstallCommand="/q"
SourceFile="..\SetupProject\MCR_R2012a_win64_installer.exe"
InstallCondition="(NOT MatlabPath)"/>
<MsiPackage
Id="MYAPP"
Cache="no"
Compressed="no"
Vital="yes"
SourceFile="..\SetupProject\bin\Release\MYAPPSetup.msi"/>
</PackageGroup>
</Fragment>
</Wix>
以下是我针对MCR 2012a和.NET 4.5的解决方案,如果有更好的方法,请发表意见: 这是用于文档的
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:netfx='http://schemas.microsoft.com/wix/NetFxExtension'>
<Bundle Name="MYAPP"
Version="0.6"
Manufacturer="MY Corporation"
UpgradeCode="f380ae43-5df1-4cfe-9297-526e3e638e57">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<!-- TODO: Define the list of chained packages. -->
<PackageGroupRef
Id="Netfx45FullPackage"/>
</Chain>
</Bundle>
<Fragment>
<util:RegistrySearch
Id="MatlabPath"
Variable="UniqueId"
Root="HKLM"
Key="SOFTWARE\Matworks\MATLAB\4.17\"
Result="exists"/>
<PackageGroup Id="Netfx45FullPackage">
<ExePackage
Id="Netfx45Xxx"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="no"
InstallCommand="/q"
SourceFile="..\SetupProject\dotnetfx45_full_x86_x64.exe"
DetectCondition="(Netfx4FullVersion="4.5.50709") AND (NOT VersionNT64 OR (Netfx4x64FullVersion="4.5.50709"))"
InstallCondition="(VersionNT >= v6.0 OR VersionNT64 >= v6.0) AND (NOT (Netfx4FullVersion="4.5.50709" OR Netfx4x64FullVersion="4.5.50709"))"/>
<ExePackage
Id="MatlabMCR2012a64"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="no"
InstallCommand="/q"
SourceFile="..\SetupProject\MCR_R2012a_win64_installer.exe"
InstallCondition="(NOT MatlabPath)"/>
<MsiPackage
Id="MYAPP"
Cache="no"
Compressed="no"
Vital="yes"
SourceFile="..\SetupProject\bin\Release\MYAPPSetup.msi"/>
</PackageGroup>
</Fragment>
</Wix>
“Matlabn 2012a MCR”对他们来说太具体了,无法作为安装指南。您将找到有关使用“Burn”Windows Installer XML的“Bootstrapper/Chainer”的教程。@ChristopherPainter是否与安装.net 4.5相同?就WIX安装程序而言,主体是相同的。详细信息在要启动的文件名、要传递的命令行参数和要搜索的注册表/文件(以确定是否已存在)方面有所不同。“Matlabn 2012a MCR”对他们来说太具体了,无法作为安装它的教程。您将找到有关使用“Burn”Windows Installer XML的“Bootstrapper/Chainer”的教程。@ChristopherPainter是否与安装.net 4.5相同?就WIX安装程序而言,主体是相同的。详细信息在要启动的文件名、要传递的命令行参数和要搜索的注册表/文件(以确定是否已存在)方面有所不同。