最新消息:

NSIS的下载代码

nsis 永恒心锁 929浏览 0评论
Name app
OutFile app.exe

!include "mui2.nsh"
!insertmacro MUI_LANGUAGE "SimpChinese"

!define MUI_PAGE_CUSTOMFUNCTION_SHOW MyInstFiles
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES

Function MyInstFiles
 GetDlgItem $0 $HWNDPARENT 1 ;下一步(安装)按钮

 System::Call 'Urlmon.DLL::URLDownloadToFileA(i0, t"http://www.yhxs3344.net/template/wxd_jdbbs/wxd_img/logo.png", t"nsis.png", i0,i0)i.s'
 Pop $r0
 ${If} $r0 = 0
 EnableWindow $0 1
 ${Else}
 EnableWindow $0 0
 ${Endif}
FunctionEnd

Section
SectionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » NSIS的下载代码

您必须 登录 才能发表评论!