我终于让Wix建立了一个msi,现在单独运行时一切正常。但是,当我在自己的计算机上尝试将其包装在引导程序中时,出现错误,提示找不到c:\ cpp \ setup.msi。它来自我的.msi安装程序!它不会在我的笔记本电脑上执行此操作,而是在那里工作。但这令人担忧。我非常接近可以使用的包裹...
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<!--https://gist.github.com/nathancorvussolis/6852ba282647aeb0c5c00e742e28eb48-->
<Bundle
Name="Reserve Analyst"
Version="5.4.10"
Manufacturer="Highlands Electronics"
Copyright="© 2019 Highlands Electronics"
AboutUrl="https://reserveanalyst.com/"
UpgradeCode="{54127D63-F422-4EBD-A6F5-902BF07CB089}"
Condition="VersionNT >= v5.1">
<BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication
ShowVersion="yes"
LicenseFile="C:\cpp\ReserveAnalyst_142\Setup\Bootstrapper\logo.rtf"
LogoFile="C:\cpp\ReserveAnalyst_142\WixSetup\images\gyro.png"
LogoSideFile="C:\cpp\ReserveAnalyst_142\WixSetup\images\gyro.png"
SuppressOptionsUI="no" />
</BootstrapperApplicationRef>
<!-- Visual C++ 2015 Redistributable (x86) minimum runtime msi package version -->
<util:ProductSearch
Id="VCRedist2015x86"
Result="version"
Variable="VCRedist2015x86"
UpgradeCode="65E5BD06-6392-3027-8C26-853107D3CF1A"
Condition="VersionNT" />
<!-- Visual C++ 2015 Redistributable version -->
<Variable Name="VCRedist2015" Type="version" Value="14.0.24215" />
<Chain>
<!-- Visual C++ 2015 Redistributable Update 3 (x86) -->
<ExePackage
Id="vc_redist.x86.exe"
Name="vc_redist.x86.14.0.24215.1.exe"
DisplayName="Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24215"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
InstallCondition="VersionNT"
DetectCondition="VCRedist2015x86 >= VCRedist2015"
DownloadUrl="https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x86.exe"
InstallCommand="/install /quiet /norestart"
RepairCommand="/repair /quiet /norestart"
UninstallCommand="/uninstall /quiet /norestart" >
<RemotePayload
ProductName="Visual C++ 2015 Redistributable Update 3 (x86)"
Version="14.0.24215.1"
Description="https://www.microsoft.com/en-us/download/details.aspx?id=53840"
CertificatePublicKey="371DD003A37769487A2A89A5A9DDB3026451B906"
CertificateThumbprint="98ED99A67886D020C564923B7DF25E9AC019DF26"
Hash="72211BD2E7DFC91EA7C8FAC549C49C0543BA791B"
Size="14456872" />
</ExePackage>
<RollbackBoundary />
<!-- ReserveAnalyst.msi -->
<MsiPackage
Id="X86"
DisplayName="Reserve Analyst Software"
DisplayInternalUI="yes"
ForcePerMachine="yes"
Compressed="yes"
SourceFile="C:\cpp\ReserveAnalyst_142\wix\bin\Release\ReserveAnalyst.msi"
InstallCondition="VersionNT"/>
</Chain>
</Bundle>
</Wix>
还有更多,但一次只问一个问题。我认为使用Wix引导程序无法做很多事情,例如摆脱许可证页面。我尝试更改徽标无效。我只希望它安装必备软件,并且我的.msi中有许可证
到目前为止,work I've done。我可能已经重新发明了Wix车轮,但这有助于我更好地理解Wix。
谢谢,丹。