2013-12-23 52 views
1

我有以下維克斯刻錄引導程序代碼:啓動的InstallShield 7從維克斯EXE刻錄引導程序

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"> 
<Bundle Name="Test" Version="1.0.0.0" Manufacturer="Test" UpgradeCode="cc44096e-23a6-48ab-a1f1-c75648358049"> 
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> 
     <bal:WixStandardBootstrapperApplication SuppressOptionsUI="yes" LicenseUrl="" LogoFile="Logo.bmp"/> 
    </BootstrapperApplicationRef> 

    <Variable Name="InstallParameter" bal:Overridable="yes" Type="string" Value="" /> 

    <Chain> 
     <ExePackage Name="VS2012_Redist_x86_exe" SourceFile="..\vcredist_x86_2012.exe" DetectCondition="ExeDetectedVariable" Permanent="yes" InstallCommand='/Q' /> 
     <ExePackage Name="Pack" SourceFile="..\Install.exe" DetectCondition="ExeDetectedVariable" Permanent="no" InstallCommand='[InstallParameter]' /> 
    </Chain> 
</Bundle> 
</Wix> 

所以,它首先啓動的Visual Studio 2012可再發行組件,然後install.exe程序。 Install.exe是使用InstallShield 7(不是基於MSI的)的安裝版本。 WIX代碼使用WIX 3.7編譯良好。當運行安裝程序,可再發行VS安裝罰款,但install.exe程序啓動,並試圖複製的第一個文件時,它給了我:

--------------------------- 
Component transfer error 
--------------------------- 
Component: Component1. 
File Group: 
File:  
Error:  Catastrophic failure 

任何想法,我可以從維克斯推出這款基於InstallShield安裝刻錄引導程序?

編輯:原來問題是在第二個ExePackage中的Name =「Pack」屬性。簡單地刪除該屬性使安裝程序工作。我覺得很奇怪,這個屬性會有這樣的副作用。

回答

0

原來問題出在第二個ExePackage中的Name =「Pack」屬性。簡單地刪除該屬性使安裝程序工作。我覺得很奇怪,這個屬性會有這樣的副作用。