微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

NSISasynchronous文件下载和自定义进度条

它是否存在NSIS插件或内置functionasynchronous下载文件和更新自定义进度条(使用nsDialogs创build)与下载进度?

试图理清MSI安装程序的安全权限要求

你如何在安装程序中“包装”你的应用程序?

testingWindows安装程序

inno安装程序需要关于开始菜单下的图标组的帮助

可以做一个Windows安装程序,不向用户询问什么?

您可以使用INetBgDl插件后台下载文件并设计您自己的用户界面:

!include nsDialogs.nsh !include LogicLib.nsh Var hInfo Var hPBar Function myTimer InetBgDL::GetStats ${If} $2 = 0 ${NSD_KillTimer} myTimer ${NSD_SetText} $hInfo "Completed. (Status=$0)" SendMessage $hPBar ${PBM_SETRANGE32} 0 100 SendMessage $hPBar ${PBM_SETPOS} 100 0 Return ${EndIf} IntOp $2 $2 + $1 StrCmp $4 "" 0 +2 Strcpy $4 "?" ${NSD_SetText} $hInfo "Status=$0$nCompleted $1 of $2 files$nDownloaded $3 of $4 bytes" SendMessage $hPBar ${PBM_SETRANGE32} 0 $4 SendMessage $hPBar ${PBM_SETPOS} $3 0 FunctionEnd Function myPage nsDialogs::Create 1018 Pop $0 ${NSD_CreateLabel} 0 0 100% 50% "Starting download..." Pop $hInfo ${NSD_CreateProgressBar} 0 55% 100% 10u "" Pop $hPBar ${NSD_CreateTimer} myTimer 1000 InetBgDL::Get /RESET "https://download.mozilla.org/?product=firefox-41.0.2-SSL&os=win&lang=en-US" "$PluginsDirff.exe" /END nsDialogs::show ${NSD_KillTimer} myTimer FunctionEnd Page Custom myPage Page InstFiles

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐