|
7#
发表于 2021-11-30 17:40:45
来自手机
|
只看该作者
静默下载并安装微信电脑版
- !include "MUI2.nsh"
- Name "Demo"
- Caption "Demo"
- OutFile "Demo.exe"
- SilentInstall silent
- !insertmacro MUI_PAGE_INSTFILES
- !insertmacro MUI_LANGUAGE "SimpChinese"
- Section
- StrCpy $0 "$TEMP\WeChatSetup.exe"
- NSISdl::download_quiet /TIMEOUT=30000 "https://dldir1.qq.com/weixin/Windows/WeChatSetup.exe" $0
- Pop $1
- StrCmp $1 "success" 0 +2
- Exec '$0 /S'
- SectionEnd
复制代码 |
|