123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- # ====================== 自定义宏 产品信息==============================
- !define PRODUCT_MID "Ds8JqlRmiiGR"
- !define PRODUCT_VERSION "2.0.7.1"
- !define PRODUCT_NAME "星优图片下载助手"
- !define INSTALL_OUTPUT_NAME "XYCapture_XY.exe"
- !define EXE_NAME "XYCapture.exe"
- !define PRODUCT_PATHNAME "XYCapture" #安装卸载项用到的KEY,注册表
- !define INSTALL_APPEND_PATH "XYCapture" #安装路径追加的名称
- !define APP_DOWNLOAD_URL "https://xy.xingyousoft.com/soft/XYCapture/lastest2.0.7.1.7z"
- !define PRODUCT_PUBLISHER "苏州星优办公软件有限公司"
- !define PRODUCT_LEGAL "苏州星优办公软件有限公司"
- !define STATISTICS_url "https://www.xingyousoft.com/api/index/user_log" # 统计网址
- !define UNINSTALL_url "https://xy.xingyousoft.com/soft/XYCapture/uninstallWeb/?v=2.0.7.1" # 接卸优惠网址
- # ====================== 自定义宏 安装信息==============================
- !define INSTALL_7Z_NAME "app.7z"
- !define INSTALL_RES_PATH "output\skin.zip"
- !define INSTALL_LICENCE_FILENAME "license.txt"
- !define INSTALL_ICO "logo.ico"
- ;刷新关联图标
- !define SHCNE_ASSOCCHANGED 0x08000000
- !define SHCNF_IDLIST 0
- ; 安装不需要重启
- !define MUI_FINISHPAGE_NOREBOOTSUPPORT
- ; 设置文件覆盖标记
- SetOverwrite on
- ; 设置压缩选项
- SetCompress auto
- ; 选择压缩方式
- SetCompressor /FINAL lzma
- SetCompressorDictSize 32
- ; 设置数据块优化
- SetDatablockOptimize on
- ; 设置在数据中写入文件时间
- SetDateSave on
- ;设置Unicode 编码 3.0以上版本支持
- Unicode true
- LicenseName "115浏览器"
- LicenseKey "8749afbd7acf4a170be5614d512d9522"
- Section "silentInstallSec"
- InitPluginsDir
- SetOutPath "$PLUGINSDIR"
- File "${INSTALL_LICENCE_FILENAME}"
- File "${INSTALL_RES_PATH}"
- File /oname=logo.ico "${INSTALL_ICO}" #此处的目标文件一定是logo.ico,否则控件将找不到文件
-
- #生成安装路径,包含识别旧的安装路径
- Call GenerateSetupAddress
- WriteUninstaller "$TEMP\uninst.exe"
-
- # MessageBox MB_OK|MB_ICONINFORMATION "Test silent install. you can add your silent install code here."
- SectionEnd
- !include "test.nsh"
- # ==================== NSIS属性 ================================
- # 针对Vista和win7 的UAC进行权限请求.
- # RequestExecutionLevel none|user|highest|admin
- RequestExecutionLevel admin
-
- #SetCompressor zlib
- ; 安装包名字.
- Name "${PRODUCT_NAME}"
- # 安装程序文件名.
- OutFile "..\build\${INSTALL_OUTPUT_NAME}"
- InstallDir "1"
- # 安装和卸载程序图标
- Icon "${INSTALL_ICO}"
- UninstallIcon "uninst.ico"
|