zoukankan      html  css  js  c++  java
  • NSIS 制作简单安装包

    ;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:DownloadsTeamViewer_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 "$DESKTOPTeamViewer Portable 6.0.lnk" $INSTDIRTeamViewer.exe
    CreateShortCut "$SMPROGRAMSTeamViewer Portable 6.0.lnk" $INSTDIRTeamViewer.exe
    ;安装后自动运行
    Exec "$INSTDIRTeamViewer.exe"
    ;ExecShell open "$INSTDIR说明.htm"
    SectionEnd

    Tty725 说:
    欢迎转载,但请注明内容的来源或URL;
    [转]”篇章,必须保留原始来源且勿添加本blog指向。
  • 相关阅读:
    在数据集下建立FeatureClass
    打开对话框保存对话框
    C# 向数据库中添加数据
    OleDbCommand OleDbDataAdapter比较研究素材
    C# 判断数据库是否存在某张表
    AE常见问题、异常处理
    制作停靠窗体、悬浮窗Dockpanel
    11. Container With Most Water(js)
    10. Regular Expression Matching(js)
    9. Palindrome Number(js)
  • 原文地址:https://www.cnblogs.com/Tty725/p/7487772.html
Copyright © 2011-2022 走看看