test.nsi 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # ====================== 自定义宏 产品信息==============================
  2. !define PRODUCT_MID "Ds8JqlRmiiGR"
  3. !define PRODUCT_VERSION "2.0.3.0"
  4. !define PRODUCT_NAME "星优图片下载器"
  5. !define INSTALL_OUTPUT_NAME "XYCapture_XY.exe"
  6. !define EXE_NAME "XYCapture.exe"
  7. !define PRODUCT_PATHNAME "XYCapture" #安装卸载项用到的KEY,注册表
  8. !define INSTALL_APPEND_PATH "XYCapture" #安装路径追加的名称
  9. !define APP_DOWNLOAD_URL "https://xy.xingyousoft.com/soft/XYCapture/lastest2.0.3.0.7z"
  10. !define PRODUCT_PUBLISHER "苏州星优办公软件有限公司"
  11. !define PRODUCT_LEGAL "苏州星优办公软件有限公司"
  12. !define STATISTICS_url "https://www.xingyousoft.com/api/index/user_log" # 统计网址
  13. !define UNINSTALL_url "https://xy.xingyousoft.com/soft/XYCapture/uninstallWeb/?v=2.0.3.0" # 接卸优惠网址
  14. # ====================== 自定义宏 安装信息==============================
  15. !define INSTALL_7Z_NAME "app.7z"
  16. !define INSTALL_RES_PATH "output\skin.zip"
  17. !define INSTALL_LICENCE_FILENAME "license.txt"
  18. !define INSTALL_ICO "logo.ico"
  19. ;刷新关联图标
  20. !define SHCNE_ASSOCCHANGED 0x08000000
  21. !define SHCNF_IDLIST 0
  22. ; 安装不需要重启
  23. !define MUI_FINISHPAGE_NOREBOOTSUPPORT
  24. ; 设置文件覆盖标记
  25. SetOverwrite on
  26. ; 设置压缩选项
  27. SetCompress auto
  28. ; 选择压缩方式
  29. SetCompressor /FINAL lzma
  30. SetCompressorDictSize 32
  31. ; 设置数据块优化
  32. SetDatablockOptimize on
  33. ; 设置在数据中写入文件时间
  34. SetDateSave on
  35. ;设置Unicode 编码 3.0以上版本支持
  36. Unicode true
  37. LicenseName "115浏览器"
  38. LicenseKey "8749afbd7acf4a170be5614d512d9522"
  39. Section "silentInstallSec"
  40. InitPluginsDir
  41. SetOutPath "$PLUGINSDIR"
  42. File "${INSTALL_LICENCE_FILENAME}"
  43. File "${INSTALL_RES_PATH}"
  44. File /oname=logo.ico "${INSTALL_ICO}" #此处的目标文件一定是logo.ico,否则控件将找不到文件
  45. #生成安装路径,包含识别旧的安装路径
  46. Call GenerateSetupAddress
  47. WriteUninstaller "$TEMP\uninst.exe"
  48. # MessageBox MB_OK|MB_ICONINFORMATION "Test silent install. you can add your silent install code here."
  49. SectionEnd
  50. !include "test.nsh"
  51. # ==================== NSIS属性 ================================
  52. # 针对Vista和win7 的UAC进行权限请求.
  53. # RequestExecutionLevel none|user|highest|admin
  54. RequestExecutionLevel admin
  55. #SetCompressor zlib
  56. ; 安装包名字.
  57. Name "${PRODUCT_NAME}"
  58. # 安装程序文件名.
  59. OutFile "..\build\${INSTALL_OUTPUT_NAME}"
  60. InstallDir "1"
  61. # 安装和卸载程序图标
  62. Icon "${INSTALL_ICO}"
  63. UninstallIcon "uninst.ico"