4
A
回答
4
這裏的對於.NET的例子:
Function GetDotnet ;// looks for local copy before downloading, returns path in $0
Pop $0
${If} ${FileExists} "$InitDir\dotnetfx35.exe"
StrCpy $0 "$InitDir\dotnetfx35.exe"
${ElseIf} ${FileExists} "$InitDir\dotnetfx35setup.exe"
StrCpy $0 "$InitDir\dotnetfx35setup.exe"
${Else}
Call DownloadDotnet
StrCpy $0 $0
${EndIf}
Push $0
FunctionEnd
Function DownloadDotnet ;// downloads .Net, returns download path in $0
NSISDL::download "${DotnetDownloadUrl}" "${TempDir}\dotnetfx35setup.exe"
Pop $0
${If} $0 == "cancel"
Quit
${EndIf}
StrCpy $0 "${TempDir}\dotnetfx35setup.exe"
Push $0
FunctionEnd
Function InstallDotnet ;// kicks off the .Net installer
Pop $0
Push $1
ExecWait '"$0" /norestart' $1
FunctionEnd
0
0
對於DX,您可以使用dxwebsetup.exe自舉。這是一個小的安裝程序,它會掃描用戶的系統,然後下載所需的組件:
http://www.microsoft.com/downloads/details.aspx?FamilyID=2da43d38-db71-4c1b-bc6a-9b6652cd92a3&displaylang=en
不知道是否有針對普通的.NET Framework類似的網絡安裝程序,但至少成功了一半
相關問題
- 1. NET框架與SDK下載
- 2. NSIS中的卸載腳本
- 3. 下載.NET 3.5的實體框架
- 4. 下載.NET框架4.0更新
- 5. .Net框架4 SDK下載URL?
- 6. 在NSIS腳本
- 7. 運行.NET框架.NET框架下1.1程序4.0
- 8. Bean腳本框架
- 9. TestCase腳本框架
- 10. NSIS execwait我NSIS腳本返回7
- 11. 下載腳本
- 12. C#.NET框架版本
- 13. 版本的IIS&.net框架
- 14. 識別.Net框架版本
- 15. 讓.Net框架本地化
- 16. MVC5腳手架下拉框
- 17. 如何使用NSIS腳本
- 18. 查找來自NSIS腳本
- 19. NSIS文件下載器
- 20. NSIS腳本:嵌入安裝
- 21. .NET框架
- 22. 如何下載Spring框架?
- 23. Android同步/下載框架
- 24. 如何下載Spring框架
- 25. Java腳本集合框架
- 26. 跨框架腳本iframes
- 27. PHP下載腳本
- 28. Shell下載腳本
- 29. .NET部署框架
- 30. 如何使用NSIS腳本靜默卸載以前的版本?
我想下載安裝過程中的文件,不包括DirectX或在我的8MB安裝了.NET框架。 – Kevin 2010-02-12 21:19:44
這裏引用的文件是** not **完整的安裝程序,它是** web **安裝程序。 – Dave 2010-02-12 21:22:02