問題描述
在沒有 ClickOnce 的情況下從安裝程序下載並安裝 .net framework 4.0? (Download and install .net framework 4.0 from installer without ClickOnce?)
我想使用 Inno Setup 而不是 ClickOnce 來創建我的應用安裝程序,但我需要知道如何以編程方式下載和安裝 .net framework 4.0(如果需要)和 Microsoft.Jet.OLEDB.4.0 數據提供程序(如果需要),與 ClickOnce 一樣。這個 Inno Setup 讓我在安裝時運行 exe,所以我會創建一個不同的應用程序來下載所有必需的東西並在安裝時運行它。有什麼建議嗎?
參考解法
方法 1:
This CodeProject article describes how to do it for earlier versions of the .NET Framework:
The script for .NET 4.0 should be very similar.
(by Juan、Dirk Vollmar)