2010-11-27 106 views
2

我想分發使用「Microsoft.Jet.OLEDB.4.0」和.NET 4.0的應用程序。如果需要,我已經找到了讓我的安裝程序下載.NET 4.0的方法。我只想知道這是否會自動下載「Microsoft.Jet.OLEDB.4.0」,或者我還需要找出一種方法來自行下載它。如果是的話,我需要下載並安裝在用戶機器上的是什麼? (我使用Inno Setup創建我的安裝程序)。我不使用ClickOnce,因爲我想創建一個獨立的.exe。.NET 4.0是否帶有Microsoft.Jet.OLEDB.4.0?

+0

4.0應該在Windows中可用,但是您應該閱讀@Jirapong顯示的下載頁面以獲取更多信息。 – 2010-11-27 03:06:30

回答

3

我不是100%,但OLEDB應該分開設置。您可以從

http://www.microsoft.com/downloads/en/details.aspx?familyid=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en

更新下載安裝程序,如果你想與你的安裝程序,然後你有維克斯http://wix.sourceforge.net/做捆綁,這是XML基地項目,你可能不得不使用還願(VS .NET插件) - http://wix.sourceforge.net/votive.html

/* WiX的腳本*/

<Property Id="QtExecCmdLine" Value="AccessDatabaseEngine.exe"/> 
<CustomAction Id="InstallOLEDB" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check" /> 

<InstallExecuteSequence> 
    <Custom Action="InstallOLEDB" After="..." /> 
</InstallExecuteSequence> 

對於維克斯的更多信息,最好的地方,以獲得啓動在http://www.tramontana.co.hu/wix/

+0

總是推薦使用這個最新的驅動程序,因爲它有一個x64。但請記得根據下載頁面更新您的連接字符串:) – 2010-11-27 03:03:13

+0

記得包括WixUtilExtension – bluekeys 2011-10-28 09:43:00

2

你希望這個腳本爲您的Inno Setup的:

jet4sp8.iss:

[CustomMessages] 
    jet4sp8_title=Jet 4 

    en.jet4sp8_size=3.7 MB 
    de.jet4sp8_size=3,7 MB 


    [Code] 
    const 
    jet4sp8_url = 'http://download.microsoft.com/download/4/3/9/4393c9ac-e69e-458d-9f6d-2fe191c51469/Jet40SP8_9xNT.exe'; 

    procedure jet4sp8(MinVersion: string); 
    begin 
    //check for Jet4 Service Pack 8 installation 
    if fileversion(ExpandConstant('{sys}{\}msjet40.dll')) < MinVersion then 
     AddProduct('jet4sp8.exe', 
      '/q:a /c:"install /qb /l"', 
      CustomMessage('jet4sp8_title'), 
      CustomMessage('jet4sp8_size'), 
      jet4sp8_url); 
end; 

我想喲你知道該怎麼處理這些代碼,所以我會告訴你的!

祝你好運!

Nateeo。