2011-01-31 65 views
0

我構建的安裝文件要求我使用installshield部署SQL CE 4。Installshield prq目標運行時

我需要添加到我的PRQ文件只安裝必需的運行時版本的SQL CE。目前,當我嘗試運行安裝嚮導時,如果我嘗試在x86機器上安裝x64版本,並且在機器顛倒時也收到錯誤,則會出現錯誤。

我的文件看起來像這樣

<?xml version="1.0" encoding="UTF-8"?> 
<SetupPrereq> 
<files> 
    <file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\SQL CE4\SSCERuntime_x64-ENU.exe" CheckSum="A417082ECAEDD95AFB41F73DC140C350" FileSize="0,2621240"></file> 
</files> 
<execute file="SSCERuntime_x64-ENU.exe" cmdlinesilent="/q /norestart"></execute> 
<properties Id="{F7BF54C1-CA2C-4410-98DB-480769CE6547}" Description="This prerequisite installs the Microsoft SQL Server Compact 4."></properties></SetupPrereq> 

而且

<?xml version="1.0" encoding="UTF-8"?> 
<SetupPrereq> 
<files> 
<file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\SQL CE 4\SSCERuntime_x86- ENU.exe" CheckSum="0A55733CF406FBD05DFCFF5A27A0B4F7" FileSize="0,2379544"></file> </files> 
<execute file="SSCERuntime_x86-ENU.exe" cmdlinesilent="/q /norestart"></execute> 
<properties Id="{6BD58ED0-FA9A-44BC-A201-B9D6128459AD}" Description="This prerequisite installs the Microsoft SQL Server Compact 4."></properties> 
</SetupPrereq> 

有什麼建議?

回答

2

看起來您並沒有在該先決條件中指定任何平臺或操作系統條件。嘗試添加這些,這樣每個先決條件只能在正確的系統上運行。您可能還需要添加常規的「存在」條件,以確保先決條件僅在尚未安裝前運行。

+0

嗨Michael, 我該怎麼做?我是installshield的新手。 我創造了一個新的條件,我假設你說什麼。我只是不確定從這一點開始做什麼。 – 2011-02-01 04:37:26

相關問題