當前位置:首頁 » 操作系統 » nsis資料庫

nsis資料庫

發布時間: 2025-02-06 07:44:52

『壹』 NSIS打包的程序中加入資料庫服務

你可以檢測用戶是否已經安裝 Oracle 和 .NET,如果沒有安裝,則安裝程序就不啟動。

集成 Oracle 和 .NET 是不現實的,除非你的軟體本身也非常巨大,或者提供了安裝光碟,將 Oracle 和 .NET 都放在裡面。Oracle 可能需要手動安裝。我沒用過,我猜測是使用 Install shield 打包。如果要集成,你需要知道靜默安裝參數。時間太久用戶可能不願意等待,所以還是建議啟動讓用戶手動安裝。可使用 NSIS 提供的插件 Service 檢測 Oracle 相關服務確實 Oracle 是否安裝。服務名稱你自己去搞定:
<a href=" http://nsis.sourceforge.net/Services_plug-in" target="_blank"> http://nsis.sourceforge.net/Services_plug-in</a>

services::IsServiceInstalled 'MyServiceName'
;Pop $0
$0 now contains either 'Yes', 'No' or an error description

官方關於檢測和安裝 .NET Frameword 的參考代碼:
<a href=" http://nsis.sourceforge.net/Detect_and_download_the_.NET_framework." target="_blank"> http://nsis.sourceforge.net/Detect_and_download_the_.NET_framework.</a>
<a href=" http://nsis.sourceforge.net/Simple_Way_To_Install_.NET_Framework" target="_blank"> http://nsis.sourceforge.net/Simple_Way_To_Install_.NET_Framework</a>
<a href=" http://nsis.sourceforge.net/Installing_the_Microsoft_.NET_Framework" target="_blank"> http://nsis.sourceforge.net/Installing_the_Microsoft_.NET_Framework</a>
<a href=" http://nsis.sourceforge.net/How_to_Automatically_download_and_install_a_particular_version_of_.NET_if_it_is_not_already_installed" target="_blank"> http://nsis.sourceforge.net/How_to_Automatically_download_and_install_a_particular_version_of_.NET_if_it_is_not_already_installed</a>

熱點內容
開源庫編譯管理員 發布:2025-02-06 09:39:14 瀏覽:913
臉書怎麼注冊安卓 發布:2025-02-06 09:36:47 瀏覽:380
車用安卓導航無線打不開什麼原因 發布:2025-02-06 09:27:50 瀏覽:789
安卓與蘋果如何互相傳送文件 發布:2025-02-06 09:27:40 瀏覽:25
華為伺服器盤符如何分配 發布:2025-02-06 09:26:41 瀏覽:559
傳奇h5源碼下載 發布:2025-02-06 09:26:06 瀏覽:77
編譯uclibc 發布:2025-02-06 09:09:04 瀏覽:150
用gcc編譯16位匯編 發布:2025-02-06 09:06:07 瀏覽:822
什麼低端安卓手機不卡 發布:2025-02-06 09:03:32 瀏覽:13
我的世界伺服器卡領地 發布:2025-02-06 08:50:45 瀏覽:255