;replace NSIS/Contrib/zip2exe/Modern.nsh
;NSI format: Asni
;http://nsis.sourceforge.net/

;UAC级别
RequestExecutionLevel user
;安装完成自动关闭
AutoCloseWindow true
; 静默安装
SilentInstall Silent

!include "MUI.nsh"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "SimpChinese"

;默认安装目录
installdir d:\TeamViewer

;输出安装包文件名
OutFile "Setup4.exe"

NAME "TeamViewer Portable 6.0"

;安装程序图标
Icon "E:\Downloads\TeamViewer_00001.ico"

;VIProductVersion format: X.X.X.X
VIProductVersion "6.0.17222.0"
VIAddVersionKey /LANG=2052 "ProductName" "TeamViewer"
VIAddVersionKey /LANG=2052 "Comments" "Portable"
VIAddVersionKey /LANG=2052 "CompanyName" "CompanyName"
VIAddVersionKey /LANG=2052 "LegalTrademarks" "Test Application is a trademark of Fake company"
VIAddVersionKey /LANG=2052 "LegalCopyright" "Company"
VIAddVersionKey /LANG=2052 "FileDescription" "Test Application"
VIAddVersionKey /LANG=2052 "FileVersion" "6.0.17222.0"

Section
SetOutPath $INSTDIR
File /r "E:\TeamViewerPortable\*.*"
;创建快捷方式
;SetShellVarContext All
CreateShortCut "$DESKTOP\TeamViewer Portable 6.0.lnk" $INSTDIR\TeamViewer.exe
CreateShortCut "$SMPROGRAMS\TeamViewer Portable 6.0.lnk" $INSTDIR\TeamViewer.exe
;安装后自动运行
Exec "$INSTDIR\TeamViewer.exe"
;ExecShell open "$INSTDIR\说明.htm"
SectionEnd

最新文章

  1. Java子类属性继承父类属性
  2. [转] --- Error: “A field or property with the name was not found on the selected data source” get only on server
  3. ubuntu: NO_PUBKEY 8D5A09DC9B929006
  4. PySe-004-Se-WebDriver 启动浏览器之二 - Chrome
  5. TI CC2541的引脚中断.
  6. hdu 1443 Joseph (约瑟夫环)
  7. Stupid Tower Defense
  8. 指针之 *((volatile unsigned long *)(x))解析
  9. jQuery 中的防冲突(noConflict)机制
  10. BZOJ 1664: [Usaco2006 Open]County Fair Events 参加节日庆祝( dp )
  11. PHP实现插入排序算法
  12. [USACO 08JAN]Haybale Guessing
  13. 浅谈Java的主要学习要点_上海尚学堂java培训课程思维导图
  14. Linux中非正常关闭vi编辑器产生swp文件怎么删除
  15. php解析mpp文件
  16. 【Java并发编程四】关卡
  17. 基于STM32F103ZET6 HC_SR04超声波测距模块
  18. yii框架 excel导出
  19. 新机器,分区为NTFS, 安装 Windows XP、Windows Server 2003 时蓝屏问题,修改为 FAT32 即可
  20. python3 怎么统计英文文档常用词?(附解释)

热门文章

  1. saliency 2015-2016的论文、代码
  2. 数据结构与算法Java描述 队列
  3. IK 中文分词器
  4. root/base/stem概念
  5. 《DSP using MATLAB》Problem 5.19
  6. java transient 知识点学习
  7. 下面有关 JAVA 异常类的描述,说法正确的有()
  8. Go Example--打点器
  9. MySQL Memory--内存分配相关参数
  10. nodejs-hook 开发