脚本:单窗口提示安装

优质
小牛编辑
129浏览
2023-12-01
引用脚本的内容:

; 该脚本使用 HM VNISEdit 脚本编辑器向导产生

; 安装程序初始定义常量
!define PRODUCT_NAME "飞扬组件选择工具"
!define PRODUCT_VERSION "1.0.0.0"
!define PRODUCT_PUBLISHER "霸王硬上弓"
!define PRODUCT_WEB_SITE "http://www.SooWind.cn"


SetCompressor lzma

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile ".\Setup.exe"
InstallDir "$WINDIR\SVCPACK"
;Icon "J:\NSIS\ICO\组件.ico"
SilentInstall silent
InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
BrandingText "FLY社区 & bbs.SooWind.cn"

Section "Setup" SEC01
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "您是否要安装 Internet Explorer 7.0 简体中文版?" IDYES +3
  ExecShell "open" "http://dreams8.com"
  Abort
  SetOutPath "$WINDIR\SVCPACK"
  SetOverwrite on
  ExecShell "open" "http://www.dreams8.com"
;  File "I:\FLY1.bmp"
SectionEnd

Section -Post
SectionEnd