當前位置:首頁 » 操作系統 » 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>

熱點內容
安卓10游戲怎麼玩 發布:2025-08-27 17:51:40 瀏覽:68
未配置機型什麼意思 發布:2025-08-27 17:31:06 瀏覽:623
直播源碼編程 發布:2025-08-27 17:24:31 瀏覽:414
木蘭編譯語言 發布:2025-08-27 17:06:14 瀏覽:129
編譯識別不同版本jar包 發布:2025-08-27 17:01:56 瀏覽:251
編譯人行 發布:2025-08-27 16:53:45 瀏覽:584
電腦網路ip設置緩存 發布:2025-08-27 16:41:33 瀏覽:125
排隊叫號源碼 發布:2025-08-27 16:28:50 瀏覽:853
冪數運演算法則 發布:2025-08-27 16:25:37 瀏覽:696
為什麼魔法覺醒伺服器載入不出來 發布:2025-08-27 16:24:53 瀏覽:675